Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Check File Date 2

Status
Not open for further replies.

ohmbru

Technical User
Jul 13, 2001
161
US
I am fairly new to VBA.

Is there some code that will check the date attribute of a file before importing it?

I constantly have to check for the correct files before beginning an import process. If the new files are not there, then problems occur.

I would like to be able to abort the the macro if the files are not current date.

I still use alot of macros, but the more I learn the more I convert.

Thanks,
Brian
 
Brian,

Check the FileDateTime function in help.

HTH

Craig
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top