# VBA NOW Function

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

## What is VBA NOW Function

The VBA NOW function is listed under the time category of VBA functions. When you use it in a VBA code, **it can return the current date and time in the result**. It’s just like the NOW function in the worksheet.

## how to use it

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

### Syntax

**Now()**

### 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 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 ﬁnd him online, tweeting about Excel, on a running track, or sometimes hiking up a mountain.