how to create a new sheet with today's date

M

mangesh

I have a worksheet, the first sheet is “template”, everyday I righ
click on it and click on create a copy and rename that sheet wit
today’s date. Now what I want is whenever I right click on “template
and click on create a new copy it should create a new sheet wit
today’s date (mm/dd/yy/).

Can anyone please help me out.
Thanks in advance
 
R

Ron de Bruin

Hi mangesh

You can create a macro to do this and assign it to a button on the sheet

Sub test()
Sheets("template").Copy after:=Sheets(Sheets("template").Index)
On Error Resume Next
ActiveSheet.Name = Format(Date, "mm-dd-yy")
On Error GoTo 0
End Sub

You can not use the / in the sheet name
 
Top