Since Date/Time values are NUMBERS, when you want to display a Date or Time format, you have to do something extra.
Happens that Excel usually figures out that you have a Date or Time in a CELL, but not in a control. Here, you must use the Format function to return a STRING in the format of your choosing...
Code:
Sheets("my Sheet").Cells(130, 22).value = Now
Label6.Caption = Format(Sheets("my Sheet").Cells(130, 22),"hh:nn"ss")
Skip, When a diminutive clarvoyant had disappeared from detention, headlines read... Small Medium at Large
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.