View Single Post
 
Old 09-23-2015, 09:23 AM
NoSparks NoSparks is offline Windows 7 64bit Office 2010 64bit
Excel Hobbyist
 
Join Date: Nov 2013
Location: British Columbia, Canada
Posts: 842
NoSparks is a glorious beacon of lightNoSparks is a glorious beacon of lightNoSparks is a glorious beacon of lightNoSparks is a glorious beacon of lightNoSparks is a glorious beacon of light
Default

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.
Reply With Quote