Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I would like to add current but static time to a cell within a larger macro,
but the only way I can find to enter just the time and not date as well is to use ctrl+shift+; but it doesn't appear that macro allow the use of hardkeys, although my knowledge of macros is basic i'm sure there must be a work around. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi Darran
Try: '============= Public Sub TesterC() With Range("A1") .Value = Time .NumberFormat = "h:mm AM/PM" End With End Sub '<<============= --- Regards, Norman "Darran Parsons" <Darran wrote in message ... I would like to add current but static time to a cell within a larger macro, but the only way I can find to enter just the time and not date as well is to use ctrl+shift+; but it doesn't appear that macro allow the use of hardkeys, although my knowledge of macros is basic i'm sure there must be a work around. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Run macro based on time | Excel Worksheet Functions | |||
Entering Time Macro | Excel Worksheet Functions | |||
I cannot get time format to display in a drop-down list | Excel Discussion (Misc queries) | |||
entering numbers to display a time format | Excel Discussion (Misc queries) | |||
Date and Time Macro | Excel Discussion (Misc queries) |