How to automatically turn on and off the document map.

  • Thread starter Thread starter cr113
  • Start date Start date
C

cr113

I'm creating a set of work instructions and I'm trying to decide if I
want to use the document map feature in Word 2003. I want the users to
be able to open the instructions document and view the Document Map
automatically without having them go to View/Document Map. And when
they close the document I want to automatically turn off the Document
Map so that when they open another word doc it won't open in Document
Map. Is there a way to do this?
 
To a certain extent, the display of the document map seems to be
associated with the view (just like the zoom ratio is), but I suspect
that you need auto macros to accomplish what you want. You may want to
ask in a programming newsgroup for confirmation, though.
 
Stefan said:
To a certain extent, the display of the document map seems to be
associated with the view (just like the zoom ratio is), but I suspect
that you need auto macros to accomplish what you want. You may want to
ask in a programming newsgroup for confirmation, though.

I was able to put a line of code in the Document_Open and
Document_Close events and sort of got it to work. The problem is that
if you have your macro security set to high (which is the default) Word
ignores the code. So I gave up. I'm just going to tell the users that
they need to click View/Document Map manually.

Thanks for the info!

Chuck.
 
Adding the macro to the normal.dot template and then specifying (in
the Security dialog box) that Word should trust all installed
templates and add-ins would fix that problem.
 
Back
Top