Results 1 to 10 of 10
  1. #1
    3 Star Lounger
    Join Date
    Jul 2001
    Location
    San Jose, California, USA
    Posts
    290
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Privacy (2002 SP-2)

    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?
    Attached Images Attached Images

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Privacy (2002 SP-2)

    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.

  3. #3
    3 Star Lounger
    Join Date
    Jul 2001
    Location
    San Jose, California, USA
    Posts
    290
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Privacy (2002 SP-2)

    > 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.

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Privacy (2002 SP-2)

    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?

  5. #5
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Privacy (2002 SP-2)

    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.

  6. #6
    3 Star Lounger
    Join Date
    Jul 2001
    Location
    San Jose, California, USA
    Posts
    290
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Privacy (2002 SP-2)

    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.

  7. #7
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Privacy (2002 SP-2)

    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.

  8. #8
    3 Star Lounger
    Join Date
    Jul 2001
    Location
    San Jose, California, USA
    Posts
    290
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Privacy (2002 SP-2)

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

  9. #9
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Privacy (2002 SP-2)

    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.

  10. #10
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Privacy (2002 SP-2)

    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).

Posting Permissions

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