Visual Basic for Applications Reference

Time Statement

See Also Example Specifics

Sets the system time.

Syntax

Time =time

The required timeargument is any numeric expression, string expression, or any combination, that can represent a time.

Remarks

If time is a string, Time attempts to convert it to a time using the time separators you specified for your system. If it can't be converted to a valid time, an error occurs.