sheet tabs

S

steve

Hello
can some one tell me where and how to automaticly name or
number the sheets in a work book, I have the formula but
can't remember where to use it to put dates in the tabs
for 52 weeks

thanks
steve
 
B

Bob Phillips

Steve,

This code snippet will do it.

Just change the start date to suit.

Sub AddDates()
Dim sDate As Date
Dim sh As Worksheet

sDate = "01/01/2003"
For Each sh In ActiveWorkbook.Worksheets
sh.Name = Format(sDate, "dd mmm yyyy")
sDate = sDate + 7
Next
End Sub


--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 
S

steve

thanks again Bob I figured out where to set it up.
thanks again for your help.

steve
 

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