Welcome toWord.Tips.Net
Ask a Word Question
Make a Comment
Learn Access Now
Free Printable Forms
Beauty Tips
Car Tips
Cleaning Tips
College Tips
Cooking Tips
Excel2007 Tips
ExcelTips
Family Tips
Gardening Tips
Health Tips
Home Tips
Legal Tips
Money Tips
Organizing Tips
Pest Tips
Pet Tips
Wedding Tips
Word2007 Tips
WordTips
Collapsing and Expanding Subdocuments
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
Create and Merge! Using Word's mail merge tool you can quickly and easily combine data from a variety of data sources to create great individualized documents that incorporate your data in ways that you control. WordTips: Mail Merge Magic is an invaluable source for learning how to harness the full power of Word's mail merging capabilities.