Yesterday, in Podcast Episode #1488, Bill showed us a cool way to make 30 copies of a worksheet. However, after creating the worksheets we were left with strange names like Sheet1 (2), Sheet1 (3) and so on. Horrible! Today, in Episode #1489, Bill shows us how - with one line of code in the VBA Immediate Window - to solve the remaining issue of renaming the new Worksheets.
...This episode is the video podcast companion to the book, "Learn Excel 2007 through Excel 2010 from MrExcel". Download a new two minute video every workday to learn one of the 512 Excel Mysteries Solved! and 35% More Tips than the previous edition of Bill's book!
*Kindle is Coming to 'The MrExcel Excel Store'! Stay Tuned!*
"The Learn Excel from MrExcel Podcast Series"
MrExcel.com — Your One Stop for Excel Tips and Solutions. Visit us today!
AWESOME AWESOME AWESOME!!!!! THANK U!!!! ^^V
msashikin85 2 months ago
@SourceSure, I couldn't get this to work for me. I have a master data sheet and I want to pull from column B starting with B3:B100 to name each worksheet in my workbook. Any ideas?
ryanjaimee2 2 months ago
Here is another variation...
I adapted it to my sitation.
To named the tab from a present and specific cell value from each of them.
For i = 1 to 3 : WorkSheets(i).name = WorkSheets(i).Range("B2").Value : Next
I'm always impress.
Thx a lot.
SourceSure 2 months ago
Here is a slight variation of your macro:
For i = 1 to Worksheets.Count : Worksheets(i).Name = "Day " & i : Next
That way you don't have to know/count how many Sheets you have to rename.
And it bypass the 28/29 or 30 day sheet error.
lantere 2 months ago
Many thanks for this very handy trick.
TaurusPresents 2 months ago
@osmrducks1 , That is a great trick!
ExcelIsFun 2 months ago
Easy way that you found, thx!
danielvondavis 2 months ago
Awesome!..... That is the way to go if you already have 30 sheets, but if you haven't made your sheet copies yet, then just name the first worksheet Day (1) and excel will increment the number as you copy automatically.... Thanks Bill, you have taught me a lot, keep up the great work.
osmrducks1 2 months ago
Bill, super cool trick. Wow, that saves a whole lot of time. Thanks.
krn14242 2 months ago