D David Nov 3, 2003 #1 I have a datetime as a variant variable. How can I format it as the equivalent serial number?
H Harald Staff Nov 3, 2003 #2 Sub test() Dim D As Date D = Now MsgBox Format(D, "General Number") End Sub (You should use a Date and not a Variant if Datetime is what it's filed with at all times)
Sub test() Dim D As Date D = Now MsgBox Format(D, "General Number") End Sub (You should use a Date and not a Variant if Datetime is what it's filed with at all times)