Renaming Tabs With Current Date

hinklewj

Board Regular
Joined
Oct 31, 2002
Messages
90
Within a macro, is there a way to have it rename a tab to whatever the current date is?

Thanks!
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.

Russell Hauf

MrExcel MVP
Joined
Feb 10, 2002
Messages
1,611
Welcome to the board.

Yes, there is:

ActiveSheet.Name = Format(Date,"mmddyy")

or

Worksheets("Sheet1").Name = Format(Date,"mmddyy")

...and of course you can format the date however you like.

Hope this helps,

Russell
 

Mudface

MrExcel MVP
Joined
Feb 18, 2002
Messages
3,339
...and of course you can format the date however you like.

Except with slashes, ie this won't work: -

Sheet1.Name = Format(Date, "mm/dd/yy")
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,533
Messages
5,832,291
Members
430,127
Latest member
JustDande

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
Top