I can get a worksheet name and index, how do I get the worksheet (Name)?
Example:
I delete sheet1, copy sheet3 before sheet2, rename to sheet1 but the VBA name is Sheet4. The index number will be 1 but it is not Sheet1 in the VBA Project Explorer.
I can get a worksheet name and index, how do I get the worksheet (Name)?
Example:
I delete sheet1, copy sheet3 before sheet2, rename to sheet1 but the VBA name is Sheet4. The index number will be 1 but it is not Sheet1 in the VBA Project Explorer.
Last edited by Rick_Stanich; 01-14-2010 at 01:39 PM. Reason: Edited title
Regards
Rick
Win10, Office 365
You need the CodeName rather than the Name property.
Remember what the dormouse said
Feed your head
Sounds like you want .CodeName
Thanks, could not find out what I needed from the help files.
Darn, you cant change the codename progmatically?
Hi Rick
Try this link http://www.cpearson.com/Excel/codemods.htm
John
John
If you have issues with Code I've provided, I appreciate your feedback.
In the event Code provided resolves your issue, please mark your Thread as SOLVED.
If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.
Thanks, that did the trick
Please Login or Register to view this content.
man. you learn something everyday. Thanx, John.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks