VBA Sheet Name – 1096 – Learn Excel from MrExcel Podcast

September 7, 2009 at 9:00 am 2 comments

Your recorded macros might not work if someone renames a worksheet. Rather than use the worksheet name, use the code name for the worksheet. This name can never be changed and is more reliable. Episode 1096 shows you how.

This blog is the video podcast companion to the book, Learn Excel 97-2007 from MrExcel. Download a new two minute video every workday to learn one of the 377 tips from the book!


Entry filed under: Uncategorized. Tags: , , .

Dueling: Random Date – 1095 – Learn Excel from MrExcel Podcast Removing Name – 1097 – Learn Excel from MrExcel Podcast

2 Comments Add your own

  • 1. Ric Santiago  |  September 8, 2009 at 5:52 pm

    Bill, I tested to see if this coding would resist to the user moving the sheet "anything we wanted" from 1st position to last. Indeed, this originally first sheet will keep being Sheet1 and the macro will still work!

  • 2. Bill  |  September 9, 2009 at 8:55 am

    Oh yes …very cool the way that this works. If the macro recorder would start using the code name of the sheet, people would have better code to start customizing.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed

Learn Excel from MrExcel

Learn Excel Podcast Splash Screen

The Excel Beginners Book:

"Don't Fear The Spreadsheet" - by Tyler Nash, Bill Jelen, Tom Urtis and Kevin Jones

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 743 other followers

Live Lessons Excel 2010 DVD

"Live Lessons Excel 2010" DVD

RSS MrExcel Recent Articles

  • An error has occurred; the feed is probably down. Try again later.

Recent MrExcel Tweets

MrExcel Podcast Archive

%d bloggers like this: