
Signature
Russ
drsmN0SPAMikleAThotmailD0Tcom.INVALID
Russ,
The code I meant to post is:
Sub ScratchMacroII()
Dim oSect As Section
For Each oSect In ActiveDocument.Range.Sections
oSect.Footers(wdHeaderFooterFirstPage).LinkToPrevious = False
oSect.Footers(wdHeaderFooterPrimary).LinkToPrevious = False
oSect.Footers(wdHeaderFooterEvenPages).LinkToPrevious = False
oSect.Headers(wdHeaderFooterFirstPage).LinkToPrevious = False
oSect.Headers(wdHeaderFooterEvenPages).LinkToPrevious = False
oSect.Headers(wdHeaderFooterPrimary).LinkToPrevious = False
Next
End Sub
There are six story ranges that are associated with Headers and Footers. A
First Page, Primary (Odd Pages), and Even Pages. Every section can contain
all six. AFAIK there is no way that you can isolate a single page (e.g.,
page 10) of a section to toggle the LinkToPrevious attribute.
If you wanted to remove link to previous say in section 4 footer Even pages
only then you could code like this:
ActiveDocument.Sections(4).Footers(wdHeaderFooterEvenPages).LinkToPrevious =
False
or substitute wdHeaderFooterEvenPages with its constant "3"
ActiveDocument.Sections(4).Footers(3).LinkToPrevious = False

Signature
Greg Maxey/Word MVP
See:
http://gregmaxey.mvps.org/word_tips.htm
For some helpful tips using Word.
> Greg,
> So headers and footers collections are indexed differently.
[quoted text clipped - 28 lines]
>> AFAIK, each there are three storytypes available to each section (no more
>> and no less) regardless if they are physically used in the document.
fumei - 21 Sep 2007 06:45 GMT
Actually, every Section does contain all six. There is no "can". They do.
Greg Maxey - 21 Sep 2007 10:24 GMT
Yes I know that. I waffled about just stating that, but thought it might
make things confusing when many sections "appear" to contain only one type
of header/footer.

Signature
Greg Maxey/Word MVP
See:
http://gregmaxey.mvps.org/word_tips.htm
For some helpful tips using Word.
> Actually, every Section does contain all six. There is no "can".
> They do.
Russ - 21 Sep 2007 10:21 GMT
Greg and fumei,
OK, thanks for the info.
> Russ,
>
[quoted text clipped - 26 lines]
>
> ActiveDocument.Sections(4).Footers(3).LinkToPrevious = False

Signature
Russ
drsmN0SPAMikleAThotmailD0Tcom.INVALID