Hi All

I want to use code prove that a document has been saved, or otherwise.
Before saving the document (using ActiveDocument.Save) I use a message box to
display the date/time the document was last saved i.e. the value of
wdPropertyTimeLastSaved). I then save and display another message box with
the new value for wdPropertyTimeLastSaved. The problem is that it the value
doesn't appear to update the seconds field so, if I save the document at an
interval of less than one minute, the two values are the same. Is there a
way around this?

Many thanks for any help in advance
Mad Dog

Re: BuiltIn Doc Property - wdPropertyTimeLastSaved - does not update by Jezebel

Jezebel
Wed May 04 16:41:44 CDT 2005

Are you sure the second save is actually doing something? Unless the
document's .Saved property is FALSE, the Save method does nothing (so the
LastSavedTime won't change).




"Mad Dog" <Mad Dog@discussions.microsoft.com> wrote in message
news:5DF1F5FD-1DCA-4DA9-A4D2-8DEE4F93D1C1@microsoft.com...
> Hi All
>
> I want to use code prove that a document has been saved, or otherwise.
> Before saving the document (using ActiveDocument.Save) I use a message box
> to
> display the date/time the document was last saved i.e. the value of
> wdPropertyTimeLastSaved). I then save and display another message box
> with
> the new value for wdPropertyTimeLastSaved. The problem is that it the
> value
> doesn't appear to update the seconds field so, if I save the document at
> an
> interval of less than one minute, the two values are the same. Is there a
> way around this?
>
> Many thanks for any help in advance
> Mad Dog



Re: BuiltIn Doc Property - wdPropertyTimeLastSaved - does not upda by MadDog

MadDog
Thu May 05 02:48:01 CDT 2005

Hi Jezebel

The document has been modified and does save. When I re-open it the
modified text is there.

Mad Dog

"Jezebel" wrote:

> Are you sure the second save is actually doing something? Unless the
> document's .Saved property is FALSE, the Save method does nothing (so the
> LastSavedTime won't change).
>
>
>
>
> "Mad Dog" <Mad Dog@discussions.microsoft.com> wrote in message
> news:5DF1F5FD-1DCA-4DA9-A4D2-8DEE4F93D1C1@microsoft.com...
> > Hi All
> >
> > I want to use code prove that a document has been saved, or otherwise.
> > Before saving the document (using ActiveDocument.Save) I use a message box
> > to
> > display the date/time the document was last saved i.e. the value of
> > wdPropertyTimeLastSaved). I then save and display another message box
> > with
> > the new value for wdPropertyTimeLastSaved. The problem is that it the
> > value
> > doesn't appear to update the seconds field so, if I save the document at
> > an
> > interval of less than one minute, the two values are the same. Is there a
> > way around this?
> >
> > Many thanks for any help in advance
> > Mad Dog
>
>
>

Re: BuiltIn Doc Property - wdPropertyTimeLastSaved - does not update by Cindy

Cindy
Sun May 08 13:51:45 CDT 2005

Hi =?Utf-8?B?TWFkIERvZw==?=,

> I want to use code prove that a document has been saved, or otherwise.
> Before saving the document (using ActiveDocument.Save) I use a message box to
> display the date/time the document was last saved i.e. the value of
> wdPropertyTimeLastSaved). I then save and display another message box with
> the new value for wdPropertyTimeLastSaved. The problem is that it the value
> doesn't appear to update the seconds field so, if I save the document at an
> interval of less than one minute, the two values are the same. Is there a
> way around this?
>
These built-in properties about when something was saved or created or whatever
are really only "for convenience". They really can't be relied on for anything
important.

My suggestion would be to have a macro run when the user saves that puts the
current time information into a document VARIABLE. Then you can retrieve that
any time you like.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :-)


Re: BuiltIn Doc Property - wdPropertyTimeLastSaved - does not upda by MadDog

MadDog
Sun May 08 22:28:02 CDT 2005

Thank you both very much. Both suggestions have helped.
Mad Dog

"Mad Dog" wrote:

> Hi Jezebel
>
> The document has been modified and does save. When I re-open it the
> modified text is there.
>
> Mad Dog
>
> "Jezebel" wrote:
>
> > Are you sure the second save is actually doing something? Unless the
> > document's .Saved property is FALSE, the Save method does nothing (so the
> > LastSavedTime won't change).
> >
> >
> >
> >
> > "Mad Dog" <Mad Dog@discussions.microsoft.com> wrote in message
> > news:5DF1F5FD-1DCA-4DA9-A4D2-8DEE4F93D1C1@microsoft.com...
> > > Hi All
> > >
> > > I want to use code prove that a document has been saved, or otherwise.
> > > Before saving the document (using ActiveDocument.Save) I use a message box
> > > to
> > > display the date/time the document was last saved i.e. the value of
> > > wdPropertyTimeLastSaved). I then save and display another message box
> > > with
> > > the new value for wdPropertyTimeLastSaved. The problem is that it the
> > > value
> > > doesn't appear to update the seconds field so, if I save the document at
> > > an
> > > interval of less than one minute, the two values are the same. Is there a
> > > way around this?
> > >
> > > Many thanks for any help in advance
> > > Mad Dog
> >
> >
> >