Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 96
Default Sheet tabs with Date and Time

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Sheet tabs with Date and Time

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Sheet tabs with Date and Time

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 691
Default Sheet tabs with Date and Time

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 64
Default Sheet tabs with Date and Time

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
sheet tabs is checked but I can't see my tabs 3091Director Excel Discussion (Misc queries) 2 March 15th 10 03:46 AM
How do I export hours from one sheet into a time & date schedule Hilda Excel Discussion (Misc queries) 0 November 11th 08 04:04 PM
tabs are missing even though 'tools-options-view-sheet tabs' ok? rgranell Excel Worksheet Functions 3 August 16th 08 04:25 PM
Formula that will record the time and date when an entry is made on a sheet [email protected] Excel Worksheet Functions 3 October 11th 07 08:28 AM
Date Range for my time sheet PamelaT Excel Worksheet Functions 2 February 27th 06 02:20 PM


All times are GMT +1. The time now is 04:13 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"