Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The following line of code will not work with Excel'97 but will work on
later versions (goes into Debug - Invalid procedure) Sheets("Access Log").Cells(x + 2, 1) = Format(Now(), "ddd dd/mm/yy at hh:mm:ss ampm ") Does anyone know code for above formatting that will work with Excel'97 and above? Thanks |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
if you want to display "at" as it is, try this: Sheets("Access Log").Cells(x + 2, 1) = _ Format(Now(), "ddd dd/mm/yy ""at"" hh:mm:ss ampm ") the later versions seem to be less strict. see also the help topic or web page. User-Defined Numeric Formats (Format Function) http://msdn.microsoft.com/library/en...ricformats.asp -- HTH, okaizawa John wrote: The following line of code will not work with Excel'97 but will work on later versions (goes into Debug - Invalid procedure) Sheets("Access Log").Cells(x + 2, 1) = Format(Now(), "ddd dd/mm/yy at hh:mm:ss ampm ") Does anyone know code for above formatting that will work with Excel'97 and above? Thanks |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks for that, it works. It would have taken light years for me to spot
that one "okaizawa" wrote in message ... Hi, if you want to display "at" as it is, try this: Sheets("Access Log").Cells(x + 2, 1) = _ Format(Now(), "ddd dd/mm/yy ""at"" hh:mm:ss ampm ") the later versions seem to be less strict. see also the help topic or web page. User-Defined Numeric Formats (Format Function) http://msdn.microsoft.com/library/en...ricformats.asp -- HTH, okaizawa John wrote: The following line of code will not work with Excel'97 but will work on later versions (goes into Debug - Invalid procedure) Sheets("Access Log").Cells(x + 2, 1) = Format(Now(), "ddd dd/mm/yy at hh:mm:ss ampm ") Does anyone know code for above formatting that will work with Excel'97 and above? Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro to update a column in a work based on another work sheet | New Users to Excel | |||
how can i automatically generate work order numbers from work orde | Excel Discussion (Misc queries) | |||
flash object dont work in my excel work sheet | Excel Discussion (Misc queries) | |||
Counting dates in multiple work sheets and work books | Excel Discussion (Misc queries) | |||
Is there away to keep "auto save" from jumping to the first work sheet in the work book? | New Users to Excel |