Determine New vs Existing Word Document?

  • Thread starter Brian McCullough
  • Start date
B

Brian McCullough

Hello,

What is the correct way to check if the a Word Document has been saved using
an explicit Save command? I am trying to determine if a document is "New"
vs "Existing".

What about for a PowerPoint Presentation and/or Excel Workbook?

Thanks in advance!

-Brian
 
C

Cindy M.

Hi Brian,
What is the correct way to check if the a Word Document has been saved using
an explicit Save command? I am trying to determine if a document is "New"
vs "Existing".
I don't think there is anything in the object model that will tell you this.
Checking the file creation time would be a possibility. Or trap the DocumentNew
event of the Application object and maintain a collection of documents that
were newly created (and/or do the same with the DocumentOpen event).

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
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 :)
 

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