This is probably very simple but I am not sure how to do it. Here is the code I recorded to insert a new sheet in a workbook.
Sheets.Add After:=Sheets(Sheets.Count)
Sheets("Sheet34").Select
Sheets("Sheet34").Name = "Billed Summary"
My problem is the name "sheet34" is not always "sheet34" so the next line does not reference the right name. Can you give the sheet a name when you insert it?
Bookmarks