Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
What context must I use to rename a worksheet tab with the the current date
I have success with naming it in a macro with text using ActiveSheet.Selec ActiveSheet.Name = "HD I would like tab to be named "Date-HD" but the TODAY() function doesn't work..... Thanks for your input |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
try ActiveSheet.Name = Format(date,"mmddyyy") & "-HD" -- Regards Frank Kabel Frankfurt, Germany Sherri wrote: What context must I use to rename a worksheet tab with the the current date? I have success with naming it in a macro with text using: ActiveSheet.Select ActiveSheet.Name = "HD" I would like tab to be named "Date-HD" but the TODAY() function doesn't work...... Thanks for your input |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
hi Frank
I tweaked to ActiveSheet.Name = Format(Date, "mm-dd-yy") & "-HD and it does what I wanted Thanks for the help Sherri |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Always advisable for using dates in the format yyyy mm for sorting purposes.
-- HTH ------- Bob Phillips "Sherri" wrote in message ... hi Frank, I tweaked to ActiveSheet.Name = Format(Date, "mm-dd-yy") & "-HD" and it does what I wanted! Thanks for the help! Sherri |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Activesheet.Name = Format(Date, "yyyy mm dd") & "-HD"
-- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "Sherri" wrote in message ... What context must I use to rename a worksheet tab with the the current date? I have success with naming it in a macro with text using: ActiveSheet.Select ActiveSheet.Name = "HD" I would like tab to be named "Date-HD" but the TODAY() function doesn't work...... Thanks for your input |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Text "comparison" operator for "contains" used in an "IF" Function | Excel Worksheet Functions | |||
How to transfer "text" into "date"? | Excel Discussion (Misc queries) | |||
Macro to Create New Worksheet and Reference Cell in Old Worksheet As Tab Name - "Object Required" Error | Excel Discussion (Misc queries) | |||
Macro to concatenate into "B1" B2 thru B"x" based on new data in "Col A" | Excel Discussion (Misc queries) | |||
Insert "-" in text "1234567890" to have a output like this"123-456-7890" | Excel Discussion (Misc queries) |