Getting Rid of the Web Toolbar in Microsoft Word

ADD Balance - trademark of Charles Kenyon, Attorney at Law and Webmaster. Frequently Asked Questions - Help
Microsoft Word - Frequently Asked Questions - click to go to the question list.

on ADD Balance by Madison Wisconsin Criminal Defense Lawyer Charles Kenyon

Many people visit this site and use the information it contains. It costs money to keep on line and effort to update.
If you have received assistance here
please consider making a donation if you can.

 
Thank you. Charles Kenyon

Thank you for the suggestions. ("Smilies" from Woody's Lounge.) Click to go to Lounge. with input and suggestions from many on Thank you for the suggestions. ("Smilies" from Woody's Lounge.) Click to go to Lounge.
the Microsoft Newsgroups and at Woody's Lounge 

Click here to skip past FAQ questions list and other info and go directly to the start of this topic.

Search the FAQ site on Google.

Remember to Refresh your page. [F5].

Home
Word Tutorial - Intermediate
Legal Users Guide to Word
Downloads
Books about Microsoft Word - Newsgroup suggestions
Links
Web Resources for Microsoft Word

 

Using Date Fields in Microsoft Word
Calculated Dates
Booklet Formatting and Printing in Microsoft Word
Changing the Default Font in Microsoft Word
Document linked to Printer in Microsoft Word
Fonts Missing from Menu in Microsoft Word
How can I get a different header / footer on the second page?
Heading? Header? Microsoft Word Help
More on Headers and Footers in Word
Letterhead
Mapped Content Controls and Document Properties
Weird Lines and Borders
Macros and VBA
Master Documents Feature in Microsoft Word
A Back CoverPage in Microsoft Word
Normal Template in Microsoft Word - How to Open or Find the Normal Template
My docs open in the wrong program! Re-registering Word using the commandline.
Moving (Sharing) Customizations in Microsoft Word
Global StyleSheet?
MVP means?
Naming Files - A System is the Key
Posting tips in the Microsoft Word Forums
Getting rid of that (*)#"@^ paperclip! - Taming the Office Assistant
Page X of Y doesn't work in Microsoft Word!
Save Changes to the Global Template? Keeps Popping Up
Templates in Microsoft Word
Global Templates
Too Many Icons on the Taskbar in Microsoft Word 2000
Getting Rid of the Web Toolbar in Microsoft Word
Word for Word Perfect Users
Favorite Documents Menu
Work Menu in Microsoft Word
Templates Menu in Microsoft Word
What books have been recommended about Microsoft Word?
Where can I find more templates?
Word Links

 

This page last revised: 13 Dec 2017 05:24:01 -0600 .

How can I get rid of the web toolbar?

Web Toolbar - Not! in Microsoft Word

Why get rid of the web toolbar?

If you have to ask, you probably don't need to read this page. The web toolbar is a handy addition to Word, ... sometimes. It gives you Internet Explorer controls in your Word screen such as the previous/next buttons, home, and Favorites. It will display the full name and path for your document. 

Nevertheless, most of the time, it is of no use and takes up valuable screen space. So, most people click the close button to get rid of it. Next time they click on a hyperlink in a word document (such as the page number in a Table of Contents) - even though not a link to a web page - the web toolbar pops up again. And unlike the office assistant - it doesn't give up! As long as you can see "Web" in the list of available toolbars, you'll get to see this fellow whenever the folks at Microsoft thought it would be handy.

How to get rid of the web toolbar ...

There are four methods to be looked at. The first two use macros. If you don't know how to use macros like these, take a look at Macros and VBA.

Document-specific macro - put in "ThisDocument" object

The first is for a particular document. The second is global and gets rid of the Web toolbar until you take steps to revive it.

Method 1:


Use the VBA Editor to put this in the Document's code (in the ThisDocument object :

Private Sub Document_Open()
	On Error Resume Next
		Application.CommandBars("Web").Enabled = False
	On Error GoTo 0
End Sub

Private Sub Document_Close()
	On Error Resume Next
		Application.CommandBars("Web").Enabled = True
	On Error GoTo 0
End Sub

---------------------------------

Global - Get rid of the Web Toolbar in Word

Method 2 - kill the web toolbar:

Put the following code into an AutoExec macro in Normal.dot or some other global template:

Application.CommandBars("Web").Enabled = False

Keep in mind that this kills the web toolbar, which is something that I can live with. If you use this, be sure to leave yourself a note in numerous places on what it is you did so that if you ever want the thing you can get it back. I suppose the elegant solution would be to put a macro on the View toolbar to enable it. (The enabling macro says "true" instead of "false.") You could use the toggle macro below which takes whatever the current status is and switches it. It also makes the toolbar visible if you just enabled it.

You may want to put the following in your Normal.dot or another global as a toggle command:

Sub ToggleWebToolbarEnabled()
    With Application.CommandBars("Web")
        .Enabled = Not .Enabled
        If .Enabled = True Then
            .Visible = True
        End If
    End With
End Sub

See Template Basics for information about Normal.dot and other global templates.

For the Reviewing toolbar you would use the following macro instead:

Sub ToggleReviewingToolbarEnabled()
    With Application.CommandBars("Reviewing")
        .Enabled = Not .Enabled
        If .Enabled = True Then
            .Visible = True
        End If
    End With
End Sub

Method 3 - Add-In from this site

I've adapted Pieter Janssen's code to meet my own needs. Feel free to download and see if it works for you. You can download it from my downloads page.

Method 4 - Add-In from Pieter Janssen

I've created an add-in just for this purpose. you can download it from:

http://users.skynet.be/wordprogramming.be/ 

(right-click on disablewebbar.dot and save target to disk)

Link disabled because page is no longer available.

It adds a menu item called 'never show webbar' to the view menu.

If it is checked, the web-toolbar won't show up, if it's not, it will.

HTH, pieter. (Janssen)

See also MVP site: http://www.word.mvps.org/FAQs/MacrosVBA/BanishWebToolbar.htm 

 

Off-topic - but did you know that you can't record a macro using the web toolbar? A workaround is discussed at: http://support.microsoft.com/support/kb/articles/Q212/6/42.ASP 

I want my Web Toolbar information back! - Word 2007 - Word 2010

In Word 2007 and 2010 there is no web toolbar (or for that matter any toolbar). A poster wanted to know how to get the filename and path information provided by that toolbar. Here are two suggestions:

Solution 1 - use a field

Inserting a field with the information you need and then converting that field to text will let you copy the filename and path anywhere you want.

You can type "FileName \p" in a document and select it (no quotation marks), press Ctrl F9 to make it into a field and then F9 to activate it. You can then select this and make it a building block. When you use it in a document, selecting it and pressing Ctrl+6 will give you text of the filename and path.

Solution 2 - use vba

You could try a macro that accesses the contents of the Web toolbar under the covers:

Sub ShowAddress()
Dim strTemp As String
strTemp = InputBox("This is the URL from the Web toolbar", "Excavated!", _
  ActiveDocument.CommandBars("Web").FindControl(ID:=1740).Text)
End Sub

The following code returns the same information without accessing the toolbar:

Sub ShowPathAndName()
Dim strTemp As String
strTemp = InputBox("This is the FullName of the ActiveDocument", "Excavated!", ActiveDocument.FullName)
End Sub

From Windows Secrets Lounge JScher

Return to Questions List

 The up-to-date version of this FAQ may be found at:

http://www.addbalance.com/word/

Download this FAQ in Word 97 format

 

Send e-mail

Changes / suggestions / ideas can be sent to Charles Kenyon

Hit Counter views since 13 April 2004

Many people visit this site and use the information it contains.
It costs money to keep on line and effort to update.
If you have received assistance here
please consider making a donation if you can.

 
Thank you. ckk

Copyright 2000-2017 Charles Kyle Kenyon

FAQ provided as an adjunct / hobby as a part of my web site as a criminal defense lawyer.

Smile! Bumper stickers and jokes.

Using Date Fields in Microsoft Word
Calculated Dates
Booklet Formatting and Printing in Microsoft Word
Changing the Default Font in Microsoft Word
Document linked to Printer in Microsoft Word
Fonts Missing from Menu in Microsoft Word
How can I get a different header / footer on the second page?
Heading? Header? Microsoft Word Help
More on Headers and Footers in Word
Letterhead
Mapped Content Controls and Document Properties
Weird Lines and Borders
Macros and VBA
Master Documents Feature in Microsoft Word
A Back CoverPage in Microsoft Word
Normal Template in Microsoft Word - How to Open or Find the Normal Template
My docs open in the wrong program! Re-registering Word using the commandline.
Moving (Sharing) Customizations in Microsoft Word
Global StyleSheet?
MVP means?
Naming Files - A System is the Key
Posting tips in the Microsoft Word Forums
Getting rid of that (*)#"@^ paperclip! - Taming the Office Assistant
Page X of Y doesn't work in Microsoft Word!
Save Changes to the Global Template? Keeps Popping Up
Templates in Microsoft Word
Global Templates
Too Many Icons on the Taskbar in Microsoft Word 2000
Getting Rid of the Web Toolbar in Microsoft Word
Word for Word Perfect Users
Favorite Documents Menu
Work Menu in Microsoft Word
Templates Menu in Microsoft Word
What books have been recommended about Microsoft Word?
Where can I find more templates?
Word Links

Click to return to table of contents page of Intermediate User's Guide to Microsoft Word.Click to go to Microsoft Word new users frequently asked questions site in a new browser window.
(Intermediate Users' Guide) - - - - - - - - - - - - - - - - - - -  (Questions List)

Home
Word Tutorial - Intermediate
Legal Users Guide to Word
Downloads
Books about Microsoft Word - Newsgroup suggestions
Links
Web Resources for Microsoft Word