I have text having some particular style in a page while using Macro. The word document has about 90 pages. The text having style starts from 9th page. So I reach 9th page and read the first text having the style and set it as header.There are some more text's having same style on same page.
My problem is that I want to jump to next page to select the first text having style and set as header while ignoring other text's that follow, on the same page. Is there a solution by using Paragraph? As curently it sets all the text's of the same page as header.
Here is my function below:
Dim doc As Document Dim objParagraph As Paragraph
'Dim pgno As Integer Set doc = Documents.Open(ActiveDocument.path & "\cumindex.chrono.en.doc") doc.Activate