Set a file's modified date?

K

Ken Loomis

I found where I had a misspelling in the reports I was generating with VBA
for Excel.

I can write a routine to open each of the reports (there are over 200), and
correct the misspelling, but when I save them, that will modify the date the
file was last modified.

I'd like to:

open the file
read the date modified
correct the misspelling
save the file
reset the file's modified date to the one I read above


Is this possible? And if so, how would I do that?

Ken
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top