How can I access the date and time the current document was last saved?

M

Musawwir Spiegel

The subject line says it all. I want to be able to determine the date
and time the current document was last saved in order to include that
in the prompt of a message box. How do I access that property of the
document?
 
D

dedawson

activedocument.BuiltInDocumentProperties(wdPropertyTimeLastSaved)

Use the VBA object browser to locate WdBuiltInProperty to see all
available properties
 
M

Musawwir Spiegel

Thank you so much.

After years of running Word 95 with WordBasic, I finally had to bit
the dust, upgrade to Office 2007, and start to learn VBA. It has been
a difficult process. I find the VBA help files pretty poor since they
mostly lack cross references to related objects, methods, and
properties.

I have only found one good book on VBA -- Mastering VBA for Microsoft
Office 2007 by Richard Mansfield (Sybex). If you can recommend any
other such book, I'd be delighted.

Musawwir

==================
 

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