![]() |
How to use macro to rename worksheet with date +"text"
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 |
How to use macro to rename worksheet with date +"text"
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 |
How to use macro to rename worksheet with date +"text"
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 |
How to use macro to rename worksheet with date +"text"
hi Frank
I tweaked to ActiveSheet.Name = Format(Date, "mm-dd-yy") & "-HD and it does what I wanted Thanks for the help Sherri |
How to use macro to rename worksheet with date +"text"
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 |
All times are GMT +1. The time now is 04:45 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com