Renaming Tabs With Current Date

hinklewj

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

Thanks!
 

Some videos you may like

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off

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")
 

Watch MrExcel Video

Forum statistics

Threads
1,122,224
Messages
5,594,914
Members
413,952
Latest member
JGer

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