Sheet tabs with Date and Time

  • Thread starter Thread starter JT
  • Start date Start date
J

JT

I would like to name a sheet tab with the current date and
time using the NOW or DATE and TIME commands. But I am
having some problems with the (/) and (:) in the sheet tab.

I can replace the (/) with a (-) but haven't found a
solution for the(:) without the time looking goofy.
Appreciate the help.
 
Hi JT

Not pretty but I also use the - for the time

ActiveSheet.Name = Format(Now, "dd-mm-yy h-mm-ss")
 
You just can't use / or : in a sheet name, so you will have to use something
you understand. You could use a dot . for the time.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 
Hi,
For time separator try using Chr(166) - looks ok, pretty much like some
alarm radio display...
hth
Paul
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top