Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Userform format question
Hi,
I would like to display the current time in either a label or textbox. Could you please advise how to format. Thanks a bunch, Martha |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Userform format question
Hi Martha,
Try this. lblTime.Caption & Format(Time, "hh:mm AM/PM") -----Original Message----- Hi, I would like to display the current time in either a label or textbox. Could you please advise how to format. Thanks a bunch, Martha . |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Userform format question
I think you mean
lblTime.Caption = Format(Time, "hh:mm AM/PM") -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "mark" wrote in message ... Hi Martha, Try this. lblTime.Caption & Format(Time, "hh:mm AM/PM") -----Original Message----- Hi, I would like to display the current time in either a label or textbox. Could you please advise how to format. Thanks a bunch, Martha . |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Userform format question
It doesn't like the "&" but wotrks with "="
Thank you very much. -----Original Message----- Hi Martha, Try this. lblTime.Caption & Format(Time, "hh:mm AM/PM") -----Original Message----- Hi, I would like to display the current time in either a label or textbox. Could you please advise how to format. Thanks a bunch, Martha . . |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
Userform format question
It doesn't like the "&" but wotrks with "="
oops... sorry. I copied that out of something I have here... in my case, I wanted it to append the time to the existing caption... therefore the & But for you, yep... = Glad you got it working. Mark |
#6
Posted to microsoft.public.excel.programming
|
|||
|
|||
Userform format question
yep, that was it.
I went into one of my applications to be reminded of the exact positioning of the AM/PM part, and forgot to edit the post appropriately. Oops. -----Original Message----- I think you mean lblTime.Caption = Format(Time, "hh:mm AM/PM") |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Another Userform question. | Excel Discussion (Misc queries) | |||
Userform question | Excel Programming | |||
Userform Question | Excel Programming | |||
userform question | Excel Programming | |||
Userform question | Excel Programming |