Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
mangesh
 
Posts: n/a
Default how to create a new sheet with today's date


I have a worksheet, the first sheet is “template”, everyday I right
click on it and click on create a copy and rename that sheet with
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 with
today’s date (mm/dd/yy/).

Can anyone please help me out.
Thanks in advance.


--
mangesh


------------------------------------------------------------------------
mangesh's Profile: http://www.excelforum.com/member.php...fo&userid=6746
View this thread: http://www.excelforum.com/showthread...hreadid=523691

  #2   Report Post  
Posted to microsoft.public.excel.misc
Ron de Bruin
 
Posts: n/a
Default how to create a new sheet with today's date

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



--
Regards Ron de Bruin
http://www.rondebruin.nl


"mangesh" wrote in message
...

I have a worksheet, the first sheet is "template", everyday I right
click on it and click on create a copy and rename that sheet with
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 with
today's date (mm/dd/yy/).

Can anyone please help me out.
Thanks in advance.


--
mangesh


------------------------------------------------------------------------
mangesh's Profile: http://www.excelforum.com/member.php...fo&userid=6746
View this thread: http://www.excelforum.com/showthread...hreadid=523691



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Todays date rexmann Excel Discussion (Misc queries) 5 January 12th 06 03:18 PM
calculate no. of years between a date and today's date Sue Excel Worksheet Functions 10 June 14th 05 02:56 AM
today's date in excel David Excel Discussion (Misc queries) 2 June 2nd 05 01:15 PM
How do I create a command button to jump from sheet to sheet in a. Darlenew Excel Worksheet Functions 3 March 22nd 05 10:36 PM
Naming & renaming a sheet tab Cgbilliar Excel Worksheet Functions 1 November 7th 04 05:57 PM


All times are GMT +1. The time now is 06:20 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"