View Single Post
 
Old 11-28-2012, 03:30 AM
ramsgarla ramsgarla is offline Windows 7 64bit Office 2010 64bit
Novice
 
Join Date: Sep 2012
Posts: 21
ramsgarla is on a distinguished road
Default Selection of all Text for a specific page in word is spanning selection across pages

I am trying to iterate through each and every page in RTF document
and select all the text page by page and apply certain business rules.

Below mentioned is the code that i am using to select all the text page by page in RTF.

ActiveDocument.Bookmarks("\Page").Range.Select()

But i observe that it is selecting text from multiple pages.
i.e. text from current page along with (text from previous page or from next page)

Why is that the above code snippet not selecting text only from the current page but also includes text from next page as well ?


Any suggestions to resolve this and ensure text from only the current page is selected.
Reply With Quote