Creating and Naming Worksheet in Excel VBA [closed]

http://www.mrexcel.com/td0097.html

Dim WS as Worksheet
Set WS = Sheets.Add

You don’t have to know where it’s located, or what it’s name is, you just refer to it as WS.
If you still want to do this the “old fashioned” way, try this:

Sheets.Add.Name = "Test"

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)