Checking programatically if the worddocument is changed.

V

Vineet

Hello
I have an active x container hosting a word document.I would like to check if the end user has edited the document or not
Is there any property of word with which I can check weather a document is edited (dirty) or not
I have tried to use IsModified() but it always returns true even if the document was unmodified
Any usefull tips/hints would be appreciated
Regards
Vineet
 
J

Jezebel

Doc.Saved

False if changed.



Vineet said:
Hello,
I have an active x container hosting a word document.I would like to check
if the end user has edited the document or not.
 
R

ravi venkata

Use Track changes options
-----Original Message-----
Hello,
I have an active x container hosting a word document.I
would like to check if the end user has edited the
document or not.
Is there any property of word with which I can check
weather a document is edited (dirty) or not.
I have tried to use IsModified() but it always returns
true even if the document was unmodified.
 
V

Vineet

Hi
I have already tried Doc.Saved but it always returns me false,even when the document was UnTouched
Is it a bug or am I doing some thing wrong
Any other ideas
 
V

Vineet

I tried to use Doc.Saved but it always returned me FALSE
Any other ideas please?
 
J

Jezebel

There must be something else going wrong. Are you sure you're checking the
right document? To confirm how it works open an existing document, then
switch to VBA and in the immediate window type

? ActiveDocument.Saved

Now make a change to the document and try it again. Now save the document
and repeat.

Bear in mind that actions like using VBA to check custom document properties
sets .Saved to false, even if you don't actually change anything.
 

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