Reference: http://www.excelforum.com/excel-prog...-not-name.html
I delete sheet1, copy sheet3, rename to sheet1 and then attempt to rename the CodeName to Sheet1 as well.
This worked initially with out errors.
Now on the first run of the macro it generates an error:
This fails to rename the CodeName of "Sheet1" (.Name)Run-time error '32813':
Method 'name' of object '_VBComponent' failed
Run it again and it renames the CodeName but generates yet another error:
FYIRun-time error '-2147221080 (800401a8)':
automation error
If you really need to know, a mild case of OCD drives me to do these things.![]()
Bookmarks