![]() |
|
#1
|
|||
|
|||
![]()
The instant the new sheet is created it is the activesheet so on the next line of code
activesheet.name = "Sheet1" should rename it to Sheet1. Myself, probably wouldn't delete the original sheet, would use .cells.delete to just clear everything from the sheet. It would then be blank same as the added sheet would be. Seeing you're using the macro recorder this would be clicking the square above the row numbers which selects all cells then hitting delete. |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Batch re-naming | twols26 | Word VBA | 7 | 06-16-2015 12:29 PM |
Populate sheet 3 with data from sheet 1 and sheet 2 | speck | Excel Programming | 0 | 01-14-2015 07:54 AM |
Naming Cells for formula referencing | lynchbro | Excel | 6 | 06-26-2014 07:45 AM |
![]() |
JDevsFan | Excel Programming | 4 | 03-15-2012 08:44 AM |
Auto file naming | Rong Peng | Word VBA | 0 | 07-29-2011 07:37 AM |