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 / Long Documents / December 2003

Tip: Looking for answers? Try searching our database.

Selecting Primary Header of Section 8

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
zSplash - 02 Dec 2003 19:33 GMT
I have a document with multiple sections, and I want to select the Primary
Header of Section 8.  The code I used to select the first section was:
   ActiveDocument.StoryRanges(wdPrimaryHeaderStory).Select
How can I select the Primary Header of Section 8, in a similar fashion?

TIA
Shauna Kelly - 02 Dec 2003 20:16 GMT
Hi zSplash

ActiveDocument.Sections(8).Headers(wdHeaderFooterPrimary).Range.Select

You may find it useful to re-do your present code to refer to Section 1
explicitly, in the same way as the line above.

Hope this helps.

Shauna Kelly.  Microsoft MVP.
http://www.shaunakelly.com/word
Melbourne, Australia

> I have a document with multiple sections, and I want to select the Primary
> Header of Section 8.  The code I used to select the first section was:
>     ActiveDocument.StoryRanges(wdPrimaryHeaderStory).Select
> How can I select the Primary Header of Section 8, in a similar fashion?
>
> TIA
zSplash - 03 Dec 2003 17:57 GMT
Thank you, Shauna.  Outstanding!

st.

> Hi zSplash
>
[quoted text clipped - 17 lines]
> >
> > TIA
 
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.