
Tips.Net > WordTips Home > Files > Opening the Document Map by Default
Summary: The Document Map can be a handy tool to use when navigating and working with a large document. If you want the Document Map to always be visible with certain documents, the only way you can ensure this is by using a macro, as detailed in this tip. (This tip works with Microsoft Word 97, Word 2000, Word 2002, and Word 2003.)
One of the features that Word provides for working with a document is referred to as the Document Map. How you use this feature has been discussed in other issues of WordTips. Exactly when the Document Map pops up, however, may seem a bit confusing--until you understand how Word uses this tool.
The first thing to understand is that there is no Document Map "setting" that is saved with a document. Instead, the Document Map is either on or off within the current environment, on a document-by-document basis. Thus, you can have two documents open at the same time, and be using the Document Map in only one of them. If you are viewing the document that has the Document Map turned on, and you open or create another document, then Word assumes you want the Document Map turned on for the new document, as well. If you are viewing the document that is not using the Document Map and you open or create another document, then Word assumes you don't want to use the Document Map for the new document.
If you want to make sure that the Document Map is always open for specific documents, then the only way to accomplish this is through the use of a macro that is saved with those specific documents. The following macro will do the trick, if you save it as part of the ThisDocument object for the document in question:
Private Sub Document_Open()
ThisDocument.ActiveWindow.DocumentMap = True
ThisDocument.ActiveWindow.DocumentMapPercentWidth = 20
End Sub
This little macro makes sure that the Document Map is open, and that it is set to 20% of the width of the program window. (You can change the percentage, if desired.) The caveat to remember with this macro is that while it turns the Document Map on, the Document Map will also be on for any other documents that you open while viewing this particular document. (Remember--that's the way Word treats the Document Map feature, as described earlier.)
Tip #1628 applies to Microsoft Word versions: 97 2000 2002 2003
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!
Add power to your purpose with Word. A comprehensive 480+ page e-book explains everything you need to know about macros. (more information...)
Ask a Word Question
Make a Comment
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