Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Format Cell as Time
Hello
i have this bit of code that i would like it to format as time when the value is added to the cell ActiveCell.Offset(0, 7).Value = Round(CallmediaAveHandlingHours / NumberofWeekstoSummary, 2) The CallmediaAveHandlingHours value is a total time taken from several different worksheets. Many Thanks Stuart |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Format Cell as Time
easier then i thought
ActiveCell.Offset(0, 7).Value = Format(Round(CallmediaAveHandlingHours / NumberofWeekstoSummary, 2), "Long Time") Thanks |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Format Cell as Time
One way:
With ActiveCell.Offset(0, 7) .Value = Round(CallmediaAveHandlingHours / _ NumberofWeekstoSummary, 2) .NumberFormat = "[hh]:mm" End With In article . com, wrote: Hello i have this bit of code that i would like it to format as time when the value is added to the cell ActiveCell.Offset(0, 7).Value = Round(CallmediaAveHandlingHours / NumberofWeekstoSummary, 2) The CallmediaAveHandlingHours value is a total time taken from several different worksheets. Many Thanks Stuart |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Cell Format for Time | Excel Discussion (Misc queries) | |||
Format a TIME image in a cell | Excel Worksheet Functions | |||
Custom Cell format to mimic time format | Excel Discussion (Misc queries) | |||
How do I format a cell for time (ex. 02:17 without AM or PM)? | Excel Discussion (Misc queries) | |||
cell format for date/time in same cell excel 2003 | Excel Worksheet Functions |