How to Rename 1 to 31 full date in sheet names ?

kalpeshkansara

New Member
Joined
Dec 15, 2016
Messages
43
How can we rename sheet1 to sheet 31 as date of every month?

if we need this next october month fully from 1st date to 31st Oct 2018. How can we do?

Can it possible if we put only Month/Year as OCT/2018 THEN IT SHOULD AUTO RENAME ON EVERY SHEETS NAME FROM 01-OCT-2018 TO 31-OCT-2018 OR 01-10-2018 TO 31-10-2018.

ONE OF OFFICE REPORTS NEED EVERY MONTH TO RENAME WHOLE DAY'S DATE FOR NEW MONTH. SO ITS REQUIRED HARDLY.

IS IT POSSIBLE OR WHAT?

WAITING FOR REPLY.
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Try this :

Sub Macro1()

Dim dteIn As Date
Dim sh As Variant
dteIn = InputBox("Date entry")
'
For Each sh In Worksheets

sh.Name = Format(dteIn, "dd MMM yy")

dteIn = dteIn + 1

Next sh

End Sub
 
Upvote 0
The easiest way is to load it into a module on the spreadsheet and then run it from "Macros" on the View Tab
 
Upvote 0
After dteIn = dteIn + 1 add something like

If Format(dteIn, "DDD") = "Sun" then dteIn = dteIn + 1
 
Upvote 0

Forum statistics

Threads
1,223,642
Messages
6,173,510
Members
452,518
Latest member
SoerenB

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