Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi all,
I thought this would be an easy solve but it has me baffled. I've read quite a few old posts and still haven't a solution so would appreciate any help. I have a textbox on a userform I am trying to set to a time format. (The textbox is bound to a ws cell and this is set to time format) I have tried all of the below; UserForm5.Controls("TextBox" & i).Text = Format$(ws.Range("g" & K), "Short Time") UserForm5.Controls("TextBox" & i).Text = Format$(ws.Range("g" & K), "h:mm") UserForm5.Controls("TextBox" & i).Text = Format$ (sheets("sheet4").range("g" & K), "H:mm") UserForm5.Controls("TextBox" & i).Text = Format(ws.Range("g" & K), "Short Time") UserForm5.Controls("TextBox" & i).Text = Format(ws.Range("g" & K), "h:mm") UserForm5.Controls("TextBox" & i).Text = Format(sheets("sheet4").range("g" & K), "H:mm") None of which have worked - the time still shows as a decimal. I'd appreciate any pointers as i'm baffled and getting very frustrated! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Format TextBox on UserForm | Excel Programming | |||
Format a Userform textbox to Military time | Excel Programming | |||
TextBox in UserForm with 24h time format | Excel Programming | |||
format textbox in userform | Excel Programming | |||
Format of a TextBox in a userform | Excel Programming |