Reply
 
Thread Tools Display Modes
  #1   Report Post  
Mary Z
 
Posts: n/a
Default Macro to start up Document Map

What is the correct macro language to open the Document Map when a file is
opened?
  #2   Report Post  
Beth Melton
 
Posts: n/a
Default

The code you are looking for is:

ActiveWindow.DocumentMap = True

However since this option is specific to the application, rather than
a document, if you turn the Document Map on it should stay on and if
you turn it off it should stay off.

If you are trying to create a macro for other users that forces the
display of the Document Map then I personally wouldn't recommend it -
nor would I inflict this type of pain on other users grin.
Well...not without making it a point to preserve the user's
preferences, anyway.

Users are particular when it comes to their settings. If you create a
macro that changes *my* preferences then I'll hunt you down and tell
you what I think about you taking such liberties. ;-) And there's also
the aspect that the user may not know how to turn the Document Map
off. Then they end up coming here and asking us. :-)

To prevent either of the above from happening then what you need to do
is create a Document_Open macro that first stores the user's current
view of the Document Map in a variable and then turns on the Document
Map. Then use a Document_Close macro to set the view of the Document
Map back to that of the value of the variable.

If you aren't familiar with how to create the macros I described then
the best group for macro questions is one of the Word VBA newsgroups.
:-)

Please post all follow-up questions to the newsgroup. Requests for
assistance by email can not be acknowledged.

~~~~~~~~~~~~~~~
Beth Melton
Microsoft Office MVP

Word FAQ: http://mvps.org/word
TechTrax eZine: http://mousetrax.com/techtrax/
MVP FAQ site: http://mvps.org/


"Mary Z" wrote in message
news
What is the correct macro language to open the Document Map when a
file is
opened?



Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
create a macro to update (save) document Lae Microsoft Word Help 1 June 8th 05 12:59 AM
Email Macro that unlocks Document Mike Anderson Microsoft Word Help 1 June 6th 05 09:11 AM
Re-create the catalog merge by removing all breaks Help Jeanne Moos Mailmerge 7 May 12th 05 07:52 PM
Turning off Line Numbering Macro unformats my document! Victoria Page Layout 1 January 21st 05 12:34 AM
Recently accessed Word document list (Start Menu) Steve McC New Users 2 December 17th 04 09:55 PM


All times are GMT +1. The time now is 07:58 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"