J
jb_tenor1
I want to have my macro code determine the date a file was last updated and
then from there, decide whether or not to open it. What I don't know is how
to access the file's property that returns that date it was updated. If I
could just use an "If" statement to say something like this, in principle:
If Filename.DateUpdated >= Today() - 1 Then
Workbooks.Open Filename
End If
The goal is to only open files that have been updated within the last two
days. Is this possible?
then from there, decide whether or not to open it. What I don't know is how
to access the file's property that returns that date it was updated. If I
could just use an "If" statement to say something like this, in principle:
If Filename.DateUpdated >= Today() - 1 Then
Workbooks.Open Filename
End If
The goal is to only open files that have been updated within the last two
days. Is this possible?