TIME()

Returns the current system time (Date).


REMARKS
* If you want the current date, then you should use the DATE function.
* To set the system time, use the TIME statement.
* When used in the editor, brackets are not automatically removed.
* You can use the TIME$ function to return a String data type instead of a Variant/String data type.
* This function can be prefixed with "VBA."
* For the Microsoft documentation refer to docs.microsoft.com

Debug.Print Time()    '= volatile  
Debug.Print Time() '= "09:54:31"

© 2021 Better Solutions Limited. All Rights Reserved. © 2021 Better Solutions Limited Top