Get the date a file was modified

  • Thread starter Thread starter JustinP
  • Start date Start date
J

JustinP

Is it possible to get the date when a file was last modified
programmatically in VBA?
 
filedatetime

but not the workbook that is open - that always has the date and time when
it was opened. It you open it read only I believe it will have its last
saved time.
 
JustinP said:
Is it possible to get the date when a file was last modified
programmatically in VBA?

Using a FileSystemObject, the GetFile method will return a File
object, from which you can query the DateLastModified property.


Bob
--
 
Back
Top