tags:

views:

91

answers:

1

Hi,

Does anybody know in Word VBA how to determine:

  1. A document is newly created;
  2. A document is modified by the user?

I found the Document.Saved property, but it does not help in my case.

Thank you so much!

+2  A: 

Document.Path - if it is an existing document as against a new one.
What do you mean by "it does not help..."?

shahkalpesh
I presume he means that Document.Saved is True both for new documents and for documents that have been opened but not modified.
Gary McGill
...so, Document.Saved on its own is no use. In conjunction with your suggestion, however, it's just the job.
Gary McGill
Yes! Thank you Shahkalpesh, it's just what I want and I didn't noticed that property in the Word Object model CHM document ;) BTW, the structure of that CHM is hard to navigate.Yes, Gary is correct and that's what I meat :)Thank you all!
Edwin
stackoverflow.com does not recognize line breaks?
Edwin