• Privacy (2002 SP-2)

    Author
    Topic
    #397533

    I have “Remove personal information from this file on save” checked in the Security tab of the Options menu. The problem is that this gives me this annoying message when I exit word. not when I save the document but when I close down Word. I presume it’s coming from the automatic save of NORMAL.DOT. Is there a way to turn off this message?

    Viewing 1 reply thread
    Author
    Replies
    • #753639

      As “this file” indicates, “Remove personal information from this file on save” is not an application-level setting, but a file-level setting. If you even get the warning if you exit Word after having closed all open documents, it would seem that this setting has been turned on for Normal.dot (or for a global template). Since the setting is not very useful for Normal.dot, open it and clear the check box, then save it.

      • #753753

        > Since the setting is not very useful for Normal.dot

        I don’t agree at all. If I don’t make it in Normal.dot I’ll have to remember to do it in every new document I create. The whole point of storing preferences in Normal.dot is to avoid having to set them in each new document. I just don’t need the annoying reminder.

        • #753759

          OK, I understand. Now, the question becomes why Normal.dot is being saved every time. Do you have a date field or something like that, or code that modifies a toolbar?

        • #753760

          OK, I understand. Now, the question becomes why Normal.dot is being saved every time. Do you have a date field or something like that, or code that modifies a toolbar?

        • #753761

          Try this in Normal.dot’s ThisDocument module:

          Private Sub Document_Close()
          Dim tmp As Template
          Set tmp = MacroContainer
          If Not tmp.Saved Then
          tmp.Save
          End If
          Set tmp = Nothing
          End Sub

          Of course, if you don’t want the changes saved, you can change what happens in the loop to prevent that.

          • #753768

            OK, I’m not a VB programmer. What does this do? It looks as if it saves NORMAL.DOT, but when does it save it? I’m not familiar with the ThisDocument module and don’t know what it’s for.

            • #753776

              Each (document and) template has a built-in module named ThisDocument. If you want to write code that is automatically executed when a document based on the template is created, opened or closed, you can write a so-called event procedure in this module. Jefferson’s code is an event procedure for the Close event, i.e. the code will be executed automatically when a document is closed. It looks at the MacroContainer, i.e. the template in which the code resides, and if it has been changed since it was last saved, saves it. It may not do what you want, but you can test it out for yourself.

              To write code in ThisDocument:
              – Activate the Visual Basic Editor (Alt+F11)
              – Display the Project Explorer (Ctrl+R)
              – If necessary, expand the template (or document) you’re interested in, by clicking the + to the left of it.
              – Double click ThisDocument.
              – Select Document from the Object dropdown list in the upper left part of the code window.
              – Select Close, New or Open from the Procedure dropdown list in the upper right part.

              You can type Jefferson’s code, or copy and paste it. If you want to get rid of unused code, just erase it.

            • #753778

              When I open the visual basic editor I get an error, saying I need the visual soiurce safe client.

            • #753780

              Visual SourceSafe is part of (amongst others) the Office Developer Edition. I don’t have that version, and the only suggestion I found in the newsgroups is that this error can occur if you’re not administrator on your PC. I’m afraid I can’t offer further help with this problem.

            • #753781

              Visual SourceSafe is part of (amongst others) the Office Developer Edition. I don’t have that version, and the only suggestion I found in the newsgroups is that this error can occur if you’re not administrator on your PC. I’m afraid I can’t offer further help with this problem.

            • #753814

              Check your add-ins in the VBE. Perhaps you were set up with a source control/version control add-in. You don’t need it, and you hopefully can disable it. On the other hand, if this message is just an annoyance and not a hindrance, feel free to ignore it for now (just click OK and move on).

            • #753815

              Check your add-ins in the VBE. Perhaps you were set up with a source control/version control add-in. You don’t need it, and you hopefully can disable it. On the other hand, if this message is just an annoyance and not a hindrance, feel free to ignore it for now (just click OK and move on).

            • #753779

              When I open the visual basic editor I get an error, saying I need the visual soiurce safe client.

            • #753777

              Each (document and) template has a built-in module named ThisDocument. If you want to write code that is automatically executed when a document based on the template is created, opened or closed, you can write a so-called event procedure in this module. Jefferson’s code is an event procedure for the Close event, i.e. the code will be executed automatically when a document is closed. It looks at the MacroContainer, i.e. the template in which the code resides, and if it has been changed since it was last saved, saves it. It may not do what you want, but you can test it out for yourself.

              To write code in ThisDocument:
              – Activate the Visual Basic Editor (Alt+F11)
              – Display the Project Explorer (Ctrl+R)
              – If necessary, expand the template (or document) you’re interested in, by clicking the + to the left of it.
              – Double click ThisDocument.
              – Select Document from the Object dropdown list in the upper left part of the code window.
              – Select Close, New or Open from the Procedure dropdown list in the upper right part.

              You can type Jefferson’s code, or copy and paste it. If you want to get rid of unused code, just erase it.

          • #753769

            OK, I’m not a VB programmer. What does this do? It looks as if it saves NORMAL.DOT, but when does it save it? I’m not familiar with the ThisDocument module and don’t know what it’s for.

        • #753762

          Try this in Normal.dot’s ThisDocument module:

          Private Sub Document_Close()
          Dim tmp As Template
          Set tmp = MacroContainer
          If Not tmp.Saved Then
          tmp.Save
          End If
          Set tmp = Nothing
          End Sub

          Of course, if you don’t want the changes saved, you can change what happens in the loop to prevent that.

      • #753754

        > Since the setting is not very useful for Normal.dot

        I don’t agree at all. If I don’t make it in Normal.dot I’ll have to remember to do it in every new document I create. The whole point of storing preferences in Normal.dot is to avoid having to set them in each new document. I just don’t need the annoying reminder.

    • #753640

      As “this file” indicates, “Remove personal information from this file on save” is not an application-level setting, but a file-level setting. If you even get the warning if you exit Word after having closed all open documents, it would seem that this setting has been turned on for Normal.dot (or for a global template). Since the setting is not very useful for Normal.dot, open it and clear the check box, then save it.

    Viewing 1 reply thread
    Reply To: Privacy (2002 SP-2)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: