page

M

MarcoPolo

How can i know the number of page in which i found a selection text?
I have to copy from beginning till the page -1 of the currentpage.
 
D

Doug Robbins - Word MVP

Dim myrange as range
Set myrange = Selection.Bookmarks("\page").Range
myrange.End = myrange.Start - 1
myrange.Start = ActiveDocument.Range.Start

myrange will now contain the pages before the page on which the selection is
located, so you can then use

myrange.Copy

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top