Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I would like to be able to record the current time in certain cells, by using
the ctrl+shift+; keys. I have went to "Format Cells" "Number" tab, Selected "Time" and then chose the 24-hour display which included the seconds. My problem is that when I hit ctrl+shift+; the seconds always show up "00," example: 14:25:00. Please let know if there is a way to get the current second to show up on the time also. Excel 2007. Thanks!!!!!!!!!!! |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Enter this small macro:
Sub william() ActiveCell.NumberFormat = "[$-409]h:mm:ss AM/PM;@" ActiveCell.Value = Now End Sub and assign the shortcut CNTRL-e to it. Then click on a cell, touch CNTRL-e and the time (properly formatted) will appear in the cell -- Gary''s Student - gsnu200726 "William" wrote: I would like to be able to record the current time in certain cells, by using the ctrl+shift+; keys. I have went to "Format Cells" "Number" tab, Selected "Time" and then chose the 24-hour display which included the seconds. My problem is that when I hit ctrl+shift+; the seconds always show up "00," example: 14:25:00. Please let know if there is a way to get the current second to show up on the time also. Excel 2007. Thanks!!!!!!!!!!! |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Bingo!!!!!!!! Works great. Have a great weekend!!!!!!!!!!
"Gary''s Student" wrote: Enter this small macro: Sub william() ActiveCell.NumberFormat = "[$-409]h:mm:ss AM/PM;@" ActiveCell.Value = Now End Sub and assign the shortcut CNTRL-e to it. Then click on a cell, touch CNTRL-e and the time (properly formatted) will appear in the cell -- Gary''s Student - gsnu200726 "William" wrote: I would like to be able to record the current time in certain cells, by using the ctrl+shift+; keys. I have went to "Format Cells" "Number" tab, Selected "Time" and then chose the 24-hour display which included the seconds. My problem is that when I hit ctrl+shift+; the seconds always show up "00," example: 14:25:00. Please let know if there is a way to get the current second to show up on the time also. Excel 2007. Thanks!!!!!!!!!!! |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thank you sooooo much, Gary's Student. What does the "[$-409]" mean and why
that format? "Gary''s Student" wrote: Enter this small macro: Sub william() ActiveCell.NumberFormat = "[$-409]h:mm:ss AM/PM;@" ActiveCell.Value = Now End Sub and assign the shortcut CNTRL-e to it. Then click on a cell, touch CNTRL-e and the time (properly formatted) will appear in the cell -- Gary''s Student - gsnu200726 "William" wrote: I would like to be able to record the current time in certain cells, by using the ctrl+shift+; keys. I have went to "Format Cells" "Number" tab, Selected "Time" and then chose the 24-hour display which included the seconds. My problem is that when I hit ctrl+shift+; the seconds always show up "00," example: 14:25:00. Please let know if there is a way to get the current second to show up on the time also. Excel 2007. Thanks!!!!!!!!!!! |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I formatted a cell with the macro recorder turned on and that what I got!!
-- Gary''s Student - gsnu200730 "cblanche" wrote: Thank you sooooo much, Gary's Student. What does the "[$-409]" mean and why that format? "Gary''s Student" wrote: Enter this small macro: Sub william() ActiveCell.NumberFormat = "[$-409]h:mm:ss AM/PM;@" ActiveCell.Value = Now End Sub and assign the shortcut CNTRL-e to it. Then click on a cell, touch CNTRL-e and the time (properly formatted) will appear in the cell -- Gary''s Student - gsnu200726 "William" wrote: I would like to be able to record the current time in certain cells, by using the ctrl+shift+; keys. I have went to "Format Cells" "Number" tab, Selected "Time" and then chose the 24-hour display which included the seconds. My problem is that when I hit ctrl+shift+; the seconds always show up "00," example: 14:25:00. Please let know if there is a way to get the current second to show up on the time also. Excel 2007. Thanks!!!!!!!!!!! |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Debra Dalgleish posted this:
Creating international number formats http://office.microsoft.com/en-us/ex...346351033.aspx cblanche wrote: Thank you sooooo much, Gary's Student. What does the "[$-409]" mean and why that format? "Gary''s Student" wrote: Enter this small macro: Sub william() ActiveCell.NumberFormat = "[$-409]h:mm:ss AM/PM;@" ActiveCell.Value = Now End Sub and assign the shortcut CNTRL-e to it. Then click on a cell, touch CNTRL-e and the time (properly formatted) will appear in the cell -- Gary''s Student - gsnu200726 "William" wrote: I would like to be able to record the current time in certain cells, by using the ctrl+shift+; keys. I have went to "Format Cells" "Number" tab, Selected "Time" and then chose the 24-hour display which included the seconds. My problem is that when I hit ctrl+shift+; the seconds always show up "00," example: 14:25:00. Please let know if there is a way to get the current second to show up on the time also. Excel 2007. Thanks!!!!!!!!!!! -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I show amount of time in minutes and seconds? | Excel Worksheet Functions | |||
Converting Julian Seconds with a macro to replace old seconds data | Excel Discussion (Misc queries) | |||
Code to show current hour minute and seconds in a cell | Excel Programming | |||
Convert "Time Interval" in "hours : minutes : seconds" to seconds | New Users to Excel | |||
Subtracting time in excel to show in minutes:seconds | Excel Programming |