View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Frank Kabel Frank Kabel is offline
external usenet poster
 
Posts: 3,885
Default 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