Hi Amrish
I think you're trying to re-invent the wheel here.
Am I right in understanding that your document consists of:
- some text on page 1
- a Table of Contents
- some more text that you want to start on a new page.
If that's so, then format the text after the TOC with "Page Break Before".
That is, Format > Paragraph. On the Line and Page Breaks tab, tick the "Page
Break Before" box.
By the way, manual page breaks are almost always a bad idea. And, it's
generally a good idea to leave one empty paragraph between the TOC and any
subsequent text.
Hope this helps.
Shauna Kelly. Microsoft MVP.
http://www.shaunakelly.com/word
> Hi, I am generating the TOC of a document using C# by pointing the Range
> to
[quoted text clipped - 17 lines]
>
> -Amrish