VBA Time

Time Function Description

The VBA Time function returns the current system time.

VBA Time Syntax

The syntax for the Time function in VBA is:

Time()

Parameters

The Time function does not accept any parameters.

Example usage

The Time function can be used in VBA code. Let’s look at some VBA Time function examples:

Time()
'Result: 21:20:00