bottom
Great WordTips!
         
Your e-mail address is safe!
Close Note

Tips.Net > WordTips Home > Macros > Suppressing the Control Toolbox Toolbar

Suppressing the Control Toolbox Toolbar

Summary: If the Control Toolbox keeps appearing when you open a document, it can be bothersome. This tip explains why this may happen and what you can do to get rid of the toolbox, once and for all. (This tip works with Microsoft Word 97, Word 2000, Word 2002, Word 2003, and Word 2007.)

Have you ever used Word to open a document and had the Control Toolbox appear right away? How about running a macro and having the Control Toolbox appear? Various people have reported this behavior in Word, and it can be very frustrating.

One possible cause for the Control Toolbox popping up is that one or more components in the macros attached to the document (or a template used by the document) have open designers associated with them. A designer is nothing but a visual design window used within the VBE to design new forms, classes, or other objects used in a VBA project. It is possible for designers to be open and associated with a project, but not be visible. When this happens, the Control Toolbox is displayed, even though the designer window is not.

To solve this situation, you should make sure that all designers are closed and then save the document or template. You can close all the designers by running the following macro:

Sub CloseDesignWindows()
    Dim K As Long
    With ActiveDocument.VBProject
        For K = 1 To .VBComponents.Count
            With .VBComponents(K)
                If .HasOpenDesigner Then .DesignerWindow.Close
            End With
        Next
    End With
End Sub

Just run the macro right before you save the document or template.

Tip #1596 applies to Microsoft Word versions: 97 | 2000 | 2002 | 2003 | 2007


Find and Replace Almost Anything! An invaluable resource for learning how to harness the full power of Word's search and replace capabilities. You'll discover everything you need in order to master all the intricacies of finding and replacing elements of your document, including the super-powerful ?wildcard searches? available in Word.
 
Check out WordTips: Find and Replace today!

Helpful Links

Ask a Word Question
Make a Comment

Tips.Net Home
Vital News Home

WordTips FAQ
WordTips Premium

Learn Access Now

Beauty Tips
Bugs and Pests Tips
Car Tips
Cleaning Tips
College Tips
Cooking Tips
Excel2007 Tips
ExcelTips
Family Tips
Gardening Tips
Health Tips
Home Tips
Money Tips
Organizing Tips
Pet Tips
Word2007 Tips
WordTips

Advertise on the
WordTips Site

 

Great Info!

Get tips like this every week in WordTips, a free productivity newsletter. Enter your e-mail address and click "Subscribe."
     
(Your e-mail address will never be shared with anyone, ever.)