Quantcast
Channel: Active questions tagged header - Stack Overflow
Viewing all articles
Browse latest Browse all 701

VBA MS Word - Prevent Header from duplicating (LinkToPrevious not working)

$
0
0

I am trying to add a header to just one page in a word document. I have activedocument.Sections(10).Headers(wdHeaderFooterPrimary).LinkToPrevious = False, but whatever I put in the header is added to all other pages. I have tried looping through all headers with

For Each sec In doc.Sections     for each hdr in sec.headers          hdr.LinkToPrevious = False     nextNext

, but whatever I put in one header is being placed in all.


Viewing all articles
Browse latest Browse all 701

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>