Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / April 2006

Tip: Looking for answers? Try searching our database.

Help me banish Web toolbar, please!

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ed - 26 Apr 2006 19:01 GMT
In my Word 2002 (XP) Normal.dot, I have the following code to banish the Web
and Reviewing toolbars.  Unfortunately, they are not obeying!  If I have a
document already open and open another one using a hyperlink, I am likely to
get the Web bar.  Can I tweak this to stop it?
Ed

Sub AutoExec()
 With Application.CommandBars("Reviewing")
   .Enabled = False
   .Visible = False
 End With
 With Application.CommandBars("Web")
   .Enabled = False
   .Visible = False
 End With

 Application.OnTime _
 When:=Now + TimeValue("00:00:02"), _
 Name:="RemoveBar", Tolerance:=3
End Sub

Sub RemoveBar()
 With Application.CommandBars("Reviewing")
   .Enabled = False
   .Visible = False
 End With
 With Application.CommandBars("Web")
   .Enabled = False
   .Visible = False
 End With
End Sub
Helmut Weber - 27 Apr 2006 10:39 GMT
Hi Ed,

this one works for me:

Sub Autoopen()
  With Application.CommandBars("Web")
     .Enabled = False
     .Visible = False
  End With
End Sub

plus in autoexec, maybe.

By the way, the I needed the ontime macro
only to get control over custom commandbars
which where located in templates other than normal dot.

Signature

Greetings from Bavaria, Germany
Helmut Weber, MVP WordVBA
"red.sys" & chr(64) & "t-online.de"
Word 2002, Windows 2000

Ed - 27 Apr 2006 15:31 GMT
Thanks, Helmut.  Now if it were only so easy to vanquish the Copy Task Pane!
8>{
Ed

> Hi Ed,
>
[quoted text clipped - 12 lines]
> only to get control over custom commandbars
> which where located in templates other than normal dot.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.