Changing the "date created"or modified property in Word?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is it possible to go into the properties of a document and change the "date
created" or "date modified" details to reflect previous versions of a
document? Using Visual Basics? If you can with Visual Basics and there is
anyone who can tell me step by step I would be so grateful! Thanks!
 
Hi Jill,

Don't know if there is any very easy way to do that, but I found some stuff
at this link which looks as though it might be possible:

http://www.cpearson.com/excel/FileTimes.htm

The link includes some downloadable vba code modules and I suspect that they
could be built on to provide what you want.

I'm not in a position to have a go at the moment (just about to leave the
building) but maybe someone else is :-)

If no-one else hops in I might be able to have a try tomorrow evening (UK
time).

What would be useful to know is how familiar you are with VBA and how
detailed any steps need to be.

Regards.

Ed
 
Hello again,

I've had a go and I got it to work after a fashion. However, I found a
little glitch when I was testing. Originally I was setting the create date by
having it hard-coded into one of the downloaded modules; that seemed to work.
But when I altered the code to enable me to pass the date and time from a VBA
Userform it seemed to update the file properties correctly (as in
right-click>File>Properties) but the create date then showed up in Explorer
as blank. Not good :-(

It's not out of the question that I might find why it did that but I'm now
thinking that maybe it's a little dangerous to be doing this sort of thing at
all.

So I think I'll abandon the attempt :-|

If you post back with exactly why you want to be able to change the dates
and times someone may be able to suggest another approach.

Regards.

Ed
 
Back
Top