Worksheet tabs

S

SAK

I use Excel 2003. I have several worksheets with tabs for each day of the
month.
Is there a way to run a find and replace of the month on all the worksheets
in a workbook? (Example: the tab text is 01.dd.08. Goal -- replace all the 01
tabs text with 03 without clicking on and editing each tab individually.)
 
G

Gary''s Student

Run this little macro:

Sub tabfixer()
v = "03"
For Each w In Worksheets
n = w.Name
w.Name = v & Right(n, 6)
Next
End Sub

Next month just change the v= statement and run again
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top