Results 1 to 2 of 2
  1. #1
    New Lounger
    Join Date
    Mar 2003
    Location
    San Francisco, California, USA
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Lock Toolbars/View? (Word XP/2002)

    Hi all. I've noticed a new (and naturally infuriating) thing in Word 2002.

    When I open another person's document, Word automatically changes my "Document View" and toolbars to the Document View and toolbars that the document creator had open when they saved the document. I have literally opened a document, had 6 new toolbars open up, and my view changed to layout. This has happened several times.

    When I save or close the document, my toolbars/view do not return to my settings. Is there any way to "lock down" my Word toolbars and document view so that they don't get altered in this way?

    Thanks for your help.

    Brent

  2. #2
    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: Lock Toolbars/View? (Word XP/2002)

    Document View, no.
    Toolbars, I didn't even realize XP did this.

    You can modify your FileOpen command so that when you open a document through File>Open... a little bit of code conforms the view and toolbars to your desires. The code would look roughly like this (tested very lightly, so only one error condition was addressed):

    <pre>Sub FileOpen()
    If Dialogs(wdDialogFileOpen).Show = -1 Then 'user opened a document!
    With ActiveDocument
    .ActiveWindow.View = wdNormalView
    Dim cBar As CommandBar
    For Each cBar In .CommandBars
    Select Case cBar.Name
    Case "Menu Bar", "Standard", "Formatting", "Drawing"
    'These should be visible
    cBar.Visible = True
    Case Else
    'These should be hidden; some don't have this attribute
    ' blow off the error messages for those
    On Error Resume Next
    cBar.Visible = False
    End Select
    On Error GoTo 0 'reset error handling
    Next
    End With
    End If
    End Sub</pre>

    Of course, you could try to handle documents opened through Windows Explorer, double-clicked attachments, DOC files opened from web pages, etc., but it's too late tonight for me to go there. <img src=/S/smile.gif border=0 alt=smile width=15 height=15>

Posting Permissions

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