Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi JT
Not pretty but I also use the - for the time ActiveSheet.Name = Format(Now, "dd-mm-yy h-mm-ss") -- Regards Ron de Bruin http://www.rondebruin.nl "JT" wrote in message ... 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. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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) "JT" wrote in message ... 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. |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Formatting with the year first so you can sort sheetnames,
ActiveSheet.Name = Format(Now, "yyyy-mm-dd_hhmm") would make a lot more sense to me. or for a files the filenames in a directory. fname = "c:\mybackup\B" & Format(Now(), "yyyy_mmdd") & ".txt" A macro to sort worksheets can be found at http://www.mvps.org/dmcritchie/excel...#sortallsheets --- HTH, David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001] My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm Search Page: http://www.mvps.org/dmcritchie/excel/search.htm "Ron de Bruin" wrote in message ... Hi JT Not pretty but I also use the - for the time ActiveSheet.Name = Format(Now, "dd-mm-yy h-mm-ss") -- Regards Ron de Bruin http://www.rondebruin.nl "JT" wrote in message ... 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. |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
For time separator try using Chr(166) - looks ok, pretty much like some alarm radio display... hth Paul Uzytkownik "JT" napisal w wiadomosci ... 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. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
sheet tabs is checked but I can't see my tabs | Excel Discussion (Misc queries) | |||
How do I export hours from one sheet into a time & date schedule | Excel Discussion (Misc queries) | |||
tabs are missing even though 'tools-options-view-sheet tabs' ok? | Excel Worksheet Functions | |||
Formula that will record the time and date when an entry is made on a sheet | Excel Worksheet Functions | |||
Date Range for my time sheet | Excel Worksheet Functions |