VBA NOW Function

HomeVBA Functions LIST (Category Wise)How to use the VBA NOW Function (Syntax + Example)

What is VBA NOW Function

how to use it

To use VBA's NOW function you need to understand its syntax and arguments:




  • There’s no argument to specify in this function.

Example to use NOW Function in VBA

To practically understand how to use VBA NOW function, you need to go through the below example where we have written a vba code by using it:

Sub example_NOW()
Range("A1").Value = Now()   
End Sub

In the above code, we have used the NOW to get the current date and time in the cell A1. Every time we run this code it gives us exact current date and time according to system settings.

Related Functions

About the Author

puneet one point one

Puneet is using Excel since his college days. He helped thousands of people to understand the power of the spreadsheets and learn Microsoft Excel. You can find him online, tweeting about Excel, on a running track, or sometimes hiking up a mountain.