Time Format

mr moe

Registered User.
Local time
Today, 07:52
Joined
Jul 24, 2003
Messages
332
I have this code for an excel file in vba, strDate = Format(Date, "mm-dd-yy") & " " & " at " & Format(Time, "h-mm-ss").

I'm trying to put colons ":" instead of the dashs "-" for the time but I get a debug error, is there any way I can make it work, or am i stuck with dashes. Thanks.
 
What debug error do you get when you try Format(Time,"h:mm:ss")? It works just fine on my system.
 
time format

thanks, i'm doing this in excel and i'm getting this error msg. See attachment. Thanks.
 
try a back-slash before the colons. (??)
 

Users who are viewing this thread

Back
Top Bottom