Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The column is supposed to be time field as 15:30:25. But it currently shows
as general like 0.646064815. How can I format the column to display as time in macro? Thanks. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
ActiveSheet.Columns(1).NumberFormat = "h:mm:ss;@"
-- Tim Williams Palo Alto, CA "Sean" wrote in message ... The column is supposed to be time field as 15:30:25. But it currently shows as general like 0.646064815. How can I format the column to display as time in macro? Thanks. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
ActiveCell.Numberformat = "hh:mm:ss"
or if you will be showing hours more than 24 ActiveCell.Numberformat = "[hh]:mm:ss" -- Regards, Tom Ogilvy "Sean" wrote in message ... The column is supposed to be time field as 15:30:25. But it currently shows as general like 0.646064815. How can I format the column to display as time in macro? Thanks. |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks, Tim & Tom. It works.
"Tom Ogilvy" wrote: ActiveCell.Numberformat = "hh:mm:ss" or if you will be showing hours more than 24 ActiveCell.Numberformat = "[hh]:mm:ss" -- Regards, Tom Ogilvy "Sean" wrote in message ... The column is supposed to be time field as 15:30:25. But it currently shows as general like 0.646064815. How can I format the column to display as time in macro? Thanks. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do i change column header from R[1] C format to A1 format? | Excel Discussion (Misc queries) | |||
Conditional format a column based on value in a different column | Excel Worksheet Functions | |||
Format column to link file names in that column | Excel Discussion (Misc queries) | |||
How do I format the A/ B Column to be fixed like numeric column | Excel Worksheet Functions | |||
How do I format the A/ B Column to be fixed like numeric column | Excel Worksheet Functions |