Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / February 2006

Tip: Looking for answers? Try searching our database.

How can I force the document map to only display level 1 headings

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
cliffhayes - 24 Feb 2006 20:21 GMT
Does anyone know the macro magic that will make Word display only level 1
headings?  I use document map all the time, and each time I open a document,
I have to right-click the map and display level 1.  Want that done
automagically.

Thanks
Tony Jollans - 24 Feb 2006 22:47 GMT
The statement you need in a Document_Open routine is ..

   ActiveWindow.View.ShowHeading 1

--
Enjoy,
Tony

> Does anyone know the macro magic that will make Word display only level 1
> headings?  I use document map all the time, and each time I open a document,
> I have to right-click the map and display level 1.  Want that done
> automagically.
>
> Thanks
cliffhayes - 24 Feb 2006 23:00 GMT
Thanks Tony, I'll try that

> The statement you need in a Document_Open routine is ..
>
[quoted text clipped - 11 lines]
> >
> > Thanks
cliffhayes - 26 Feb 2006 03:06 GMT
Ok, that worked.  Now, how do I get it to run whenever I open any document?  
If that's not possible, I guess I'll have to add it to every document (sigh).
How do I do that?

> Thanks Tony, I'll try that
>
[quoted text clipped - 13 lines]
> > >
> > > Thanks
Tony Jollans - 26 Feb 2006 16:56 GMT
Auto Open macros run from either documents or attached templates. If most of
your documents use one or two templates then you can put the code in those
templates. In a more varied environment you will probably want to use the
Application DocumentOpen event

--
Enjoy,
Tony

> Ok, that worked.  Now, how do I get it to run whenever I open any document?
> If that's not possible, I guess I'll have to add it to every document (sigh).
[quoted text clipped - 17 lines]
> > > >
> > > > Thanks
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.