Automating TOC

Hi, I am generating the Table Of Contents(TOC) of a document by pointing the Range to the BookMark which i had placed manually on the start of page2. But if my TOC
fills only half the page, then actual contents start from the very same page
below the TOC. Is there any way to check if the TOC and actual contents are
present in the same page and if so can we manually include a Page Break

Could it be Something like this If so is there a syntax to get the page
number of the selection

If( PageNumberOf(TOC) == PageNumberOf(Actual Document Contents))
{
Insert Manual Page Break;
}

Or is there any other way to handle this

-Amrish



Answer this question

Automating TOC

  • Automating TOC