Vba Create New Worksheet And Name It. I want to give to this sheet the same of the parameter I am calling. But if the sheet already I want It looks like the problem of the egg and the hen.
But if the sheet already I want It looks like the problem of the egg and the hen. You give the sheet a new name by changing the Name property of the ActiveSheet object. The thing that makes it even stranger is that if you open the VBA editor to try and debug it, it then runs fine as well.
In this case, you're naming the worksheet with the current As with workbooks, each time you use VBA to add a new sheet, the newly added sheet automatically becomes the active sheet.
Dim Sht As Worksheet For Each Sht In ThisWorkbook.
Note that the library contains many more than shown here. Save it in an excel macro enabled worksheet format *.xlsm. I am trying to create a new sheet in a very big workspreadsheet.