Time returns A Variant/Date containing the current time according to your computer : Time « Data Type « VBA / Excel / Access / Word






Time returns A Variant/Date containing the current time according to your computer

 
Sub dateDemo12()
   Debug.Print time
End Sub

 








Related examples in the same category

1.To assign both a date and a time you use this format:
2.Displaying the current date and time in a cell