Collaps in document map via VBA

E

Erwin Ahlers

Hello,
I would like to collapse the items in the document map of Word 2003 by
a macro. To be precise I want to create a macro that does the same as
when I'm clicking with the right mouse on the +/- and select "Show
Heading 2".
Macro recording doesn't work for the document map and in the online
help I also haven't found something.

Thanks
Erwin
 
C

Cindy M -WordMVP-

Hi Erwin,
I would like to collapse the items in the document map of Word 2003 by
a macro. To be precise I want to create a macro that does the same as
when I'm clicking with the right mouse on the +/- and select "Show
Heading 2".
As far as I know, there's no way to automate this pane... I don't think
MS have exposed an automation interface for it.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question
or reply in the newsgroup and not by e-mail :)
 
Top