Format multiple Excel sheet names

travelinaddy

New Member
Joined
Jun 29, 2018
Messages
1
Hello! I've been trying to figure out how to rename multiple sheet names for all of today.... I've never done Macros or anything like that before and I've been trying to but nothing is working the way I want to. I'm in charge of creating schedules for work and each day is a different sheet and we go by 3 month groups (work days not whole weeks) There must be a way that i can get each sheet to say Oct 1, Oct 2, Oct 3...... through December 31st, or even later if possible. without going in and adding a new sheet and renaming it 90 times :eeek: I know there's been lots of questions asked around this topic, but I'm not even sure of how to search for what I'm asking.... Please help?!
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Hi & welcome to MrExcel
How about
Code:
Sub ShtNames()
   Dim d As Variant, i As Long
   d = InputBox("Please enter start date like dd/mm/yyyy")
   If d = "" Then Exit Sub
   d = CDate(d)
   For i = CLng(d) To CLng(Application.EoMonth(d, 2))
      If Weekday(i, 2) < 6 Then Sheets.Add(, Sheets(Sheets.Count)).name = format(CDate(i), "mmm d")
   Next i
End Sub
 
Upvote 0

Forum statistics

Threads
1,223,895
Messages
6,175,257
Members
452,625
Latest member
saadat28

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top