Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks Nick, I will try that!
Christy ;) "Nick Hebb" wrote: Try something like: Private Sub UserForm_Initialize() Dim ws As Worksheet Set ws = ActiveSheet TextBox1.Text = Format$(ws.Range("A1"), "H:mm") Set ws = Nothing End Sub Note: the capital 'H' in the format string is important. If you use a lowercase 'h' then you'll get a 12-hour clock value. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
military format of time | Excel Discussion (Misc queries) | |||
i want to use military format for time e.g. 07:00 as 0700 | Excel Worksheet Functions | |||
getting military time format within excel | Excel Discussion (Misc queries) | |||
Entering military time into a userform | Excel Programming | |||
TextBox in UserForm with 24h time format | Excel Programming |