The VBA TIME function is listed under the time category of VBA functions. When you use it in a VBA code, it returns the current time in the result. This current time will be according to the system’s current time.
- There’s no argument to specify in this function.
To practically understand how to use VBA TIME function, you need to go through the below example where we have written a vba code by using it:
Sub example_TIME() Range("A1").Value = Time() End Sub
In the above code, we have used TIME to get the current time in the cell A1.