Results 1 to 2 of 2
2003-06-04, 15:16 #1
- Join Date
- Mar 2003
- San Francisco, California, USA
- 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.
2003-06-05, 03:28 #2
- Join Date
- Feb 2001
- Silicon Valley, USA
- 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):
If Dialogs(wdDialogFileOpen).Show = -1 Then 'user opened a document!
.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
'These should be hidden; some don't have this attribute
' blow off the error messages for those
On Error Resume Next
cBar.Visible = False
On Error GoTo 0 'reset error handling
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>