Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I want the messagebox to display the time formatted hh:mm
I've played around with the following, without any joy! msgbox "The starting time is:" & Val(Range("stime")) & Format (stime,"hh:mm") Where do I go wrong? -- HJN |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I assume 'Stime" is a named range on the worksheet that contains a time. Try this MsgBox "The starting time is:" & Format(Range("Stime"), "hh:mm") Mike "Hennie Neuhoff" wrote: I want the messagebox to display the time formatted hh:mm I've played around with the following, without any joy! msgbox "The starting time is:" & Val(Range("stime")) & Format (stime,"hh:mm") Where do I go wrong? -- HJN |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Make sure that your range "stime" is not several cells. If so this will not
work. So I assume stime is a singel cell: MsgBox "The starting time is: " & Format (Range("stime").Value,"hh:mm") -- Cheers, Ryan "Hennie Neuhoff" wrote: I want the messagebox to display the time formatted hh:mm I've played around with the following, without any joy! msgbox "The starting time is:" & Val(Range("stime")) & Format (stime,"hh:mm") Where do I go wrong? -- HJN |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Format Text in MsgBox | Excel Programming | |||
MsgBox date & time | Excel Programming | |||
Format of a msgbox | Excel Programming | |||
elapsed time in msgbox | Excel Programming | |||
format values in MsgBox? | Excel Programming |