Document Map and Macros

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

When I start up a document in word, the Document Map always starts out
expanded.

I want the document to open with all headings collapsed except for Heading 1
and Heading 2.

Is there a way to do this? I've tried creating a macro but I don't think
macros can be recorded using the expand and collapse functions for the
document map.

Any help would be appreciated. Thanks!


Thanks!
Matt
 
Create an macro that contains --

with ActiveWindow
.View.ShowHeading 2
.DocumentMap = True
end with
 
Back
Top