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 / March 2006

Tip: Looking for answers? Try searching our database.

Trying to banish toolbars - not working!

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ed - 29 Mar 2006 00:25 GMT
In accordance with several posts here, I'm trying to banish the Web and
Reviewing toolbars with an AutoExec macro in the Document object of
Normal.dot in Word XP.  This is NOT working, though.  The Web toolbar has
especially been annoying today.  Can anyone help with this?

Ed

Sub AutoExec()

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

End Sub
Helmut Weber - 29 Mar 2006 11:55 GMT
Hi Ed,

all of a doc, maybe even all of the application
seems to be available only after automacros
have been executed completely.

Sub AutoExec()
' other code if there is some
Application.OnTime _
When:=Now + TimeValue("00:00:02"), _
Name:="RemoveBar"
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

You have to check out,
whether TimeValue("00:00:02") is sufficient.

Signature

Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"

Ed - 29 Mar 2006 14:49 GMT
Thank you, Helmut.  How I wish banishing the Task Panes was this easy!
Ed

> Hi Ed,
>
[quoted text clipped - 22 lines]
> You have to check out,
> whether TimeValue("00:00:02") is sufficient.
 
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.