Enzo_Matrix
Board Regular
- Joined
- Jan 9, 2018
- Messages
- 113
I am creating an on-time delivery report and this is the code for one of the steps in my process
I am wondering if there is a way to make the dates in this code change automatically for today's current date
Would changing
achieve my goal of having the name of the sheets change on their own to the next day in the sequence?
Code:
Sub NewDay()'
' NewDay Macro
' Button that initiates new day set up for on-time delivery reports
'
' Keyboard Shortcut: Ctrl+Shift+A
'
Sheets("Feb 23, 2018").Select
Sheets("Feb 23, 2018").Copy Before:=Sheets(4)
Sheets("Feb 23, 2018 (2)").Select
Sheets("Feb 23, 2018 (2)").Name = "Feb 24, 2018"
Sheets("Feb 23, 2018").Select
Range("B2").Select
End Sub
I am wondering if there is a way to make the dates in this code change automatically for today's current date
Would changing
Code:
Sheets("Feb 23, 2018 (2)").Name = "Feb 24, 2018"
' to Sheets("Feb 23, 2018 (2)").Name = Today()
Last edited: