Excel FileDateTime Function (VBA)
How to use the FileDateTime Function (VBA)
This Excel tutorial explains how to use the Excel FileDateTime function with syntax and examples using VBA.
The Excel VBA FileDateTime function returns the date and time of when a file was created or last modified.
To get the date and time when a file was created or last modified.
The FileDateTime function returns a Date value.
The FileDateTime function syntax has the following arguments:
- pathname: Required. The pathname argument is a string expression that specifies a file name.
- The pathname may include the directory or folder, and the drive.
- If the specified file is not available then an error will occur.