Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
If B2 is already formatted nicely:
frmOldJob.Label18 = Range("B2").Text or use VBA's own format function: frmOldJob.Label18 = format(Range("B2").value, "h:mm:ss") Anthony wrote: Hi Dave, Sorry I think I placed the wrong part of the code.. it should have been frmOldJob.Label18 = Range("B2") So how do I get this formatted as hh:mm?? "Dave Peterson" wrote: with ws.cells(irow,2) .numberformat = "h:mm:ss" .value = me.txttime.value end with Anthony wrote: Hi Jarek and thanks for ur reply, the code in my userform is as follows... ws.Cells(iRow, 2).Value = Me.txtTime.Value how do I reformat this so that is is correctly formatted as HH:MM? "Jarek Kujawa" wrote: 0.42342423154238 stands for 10:09:44 you should (re)format yr values put into userform with .NumberFormat = "h:mm:ss" for instance -- Dave Peterson -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Userform problem? | Excel Discussion (Misc queries) | |||
userform problem | Excel Discussion (Misc queries) | |||
Userform problem (Listindex) | Excel Discussion (Misc queries) | |||
printen userform problem | Excel Worksheet Functions | |||
UserForm Recall Problem | Excel Discussion (Misc queries) |