This indents the heading more than the 0 value.
Thanks for that, $p works fine.
It would be nice just to set the header and footers for a document and not have to set it for each section. The problem I am having is not to do with the TOC. I am using the same code to dynamically generate each section in a document, but the first page of sections (ie after the TOC) does not display the header and footer but all the other pages are fine (ie it looks like IsSubsequentPagesOnly has been set, but I have not set IsSubsequentPagesOnly/IsFirstPageOnly)
I tried setting IsFirstPageOnly on the header but the result is the same.
The code I use for each section is:-
CurrentSection = Doc.Sections.Add()
CurrentSection.EvenHeader = CurrentHeader
CurrentSection.OddHeader = CurrentHeader
CurrentSection.EvenFooter = CurrentFooter
CurrentSection.OddFooter = CurrentFooter