Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Can anyone tell me how to create a worksheet with a name that I will choose
later in a macro. Specifically, I would like to create one worksheet each day and name it with today's date (i.e. '01-19-09'). I am fairly proficient with writing macros, but have not seen a way to do this yet. Thanks. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Date is today's date and format function converts the date to text
ActiveSheet.Name = Format(Date, "mm-dd-yyyy") -- Regards, OssieMac "Woodstock" wrote: Can anyone tell me how to create a worksheet with a name that I will choose later in a macro. Specifically, I would like to create one worksheet each day and name it with today's date (i.e. '01-19-09'). I am fairly proficient with writing macros, but have not seen a way to do this yet. Thanks. |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() The following code snippet will create a new worksheet after all the existing sheets and name it with today's date. With Worksheets .Add(after:=.Item(.Count)).Name = Format(Now, "mm-dd-yy") End With Cordially, Chip Pearson Microsoft Most Valuable Professional Excel Product Group, 1998 - 2009 Pearson Software Consulting, LLC www.cpearson.com (email on web site) On Mon, 19 Jan 2009 14:35:01 -0800, Woodstock wrote: Can anyone tell me how to create a worksheet with a name that I will choose later in a macro. Specifically, I would like to create one worksheet each day and name it with today's date (i.e. '01-19-09'). I am fairly proficient with writing macros, but have not seen a way to do this yet. Thanks. |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
This worked great! Thank you so much!
"Chip Pearson" wrote: The following code snippet will create a new worksheet after all the existing sheets and name it with today's date. With Worksheets .Add(after:=.Item(.Count)).Name = Format(Now, "mm-dd-yy") End With Cordially, Chip Pearson Microsoft Most Valuable Professional Excel Product Group, 1998 - 2009 Pearson Software Consulting, LLC www.cpearson.com (email on web site) On Mon, 19 Jan 2009 14:35:01 -0800, Woodstock wrote: Can anyone tell me how to create a worksheet with a name that I will choose later in a macro. Specifically, I would like to create one worksheet each day and name it with today's date (i.e. '01-19-09'). I am fairly proficient with writing macros, but have not seen a way to do this yet. Thanks. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Worksheet naming with cell info | Excel Worksheet Functions | |||
Naming Worksheet tabs | Excel Discussion (Misc queries) | |||
Worksheet Naming Options | Excel Worksheet Functions | |||
Naming Worksheet | New Users to Excel | |||
Naming a worksheet help? | Excel Worksheet Functions |