Results 1 to 2 of 2
  1. #1
    2 Star Lounger
    Join Date
    Feb 2001
    Eugene, Oregon, USA
    Thanked 0 Times in 0 Posts

    ActiveDocument.Saved Property and Document Events (Word 2000/VBA)

    I have a couple of event procedures (DocumentOpen and DocumentBeforePrint) in a class module. These event procedures make changes to the footer of every document.

    I begin by opening a new document or by selecting print to a document that I have not modified. Once the event procedure makes a change in the document, the ActiveDocument.Saved property becomes FALSE. However, once the event procedure ends, the ActiveDocument.Saved property returns to TRUE. Is this expected behavior or am I doing something wrong? (Is there a way to ensure that the event procedures leave behind a Saved property = FALSE?)

  2. #2
    Gold Lounger
    Join Date
    Dec 2000
    Hollywood (sorta), California, USA
    Thanked 0 Times in 0 Posts

    Re: ActiveDocument.Saved Property and Document Events (Word 2000/VBA)


    We have a Word application that creates documents from templates based on user choices, etc. This procedure includes updates to headers, footers, the inserting of documents within documents, inserting autotext, document variables, doc properties -- the whole enchalada. When the UI closes and the user sees the new document -- after all that inserting and updating -- the Activedocument.Saved property is True!

    Unless I'm missing something, the input which triggers that set the .saved property to false must be keyboard or mouse related, not code induced (unless the code types something)! You may be encountering something similar.

    p.s. If you want to insure that Activedocument.saved is FALSE, try


    This is pretty stupid but I can't tell if it's me that lacking or Word...
    Kevin <IMG SRC= alt="Keep the change, ya filthy animal...">
    <img src=/w3timages/blackline.gif width=33% height=2><img src=/w3timages/redline.gif width=33% height=2><img src=/w3timages/blackline.gif width=33% height=2>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts