Select all text on selected page

R

Roy Lasris

Is there a way progammatically to select the text on the current page? the
..range.select function (alone) does not work, as in:

For Each opage In ActiveDocument.ActiveWindow.Panes(1).Pages
opage.Range.Select
Next

Any thoughts?

Thanks,

Roy
 
J

Jonathan West

Roy Lasris said:
Is there a way progammatically to select the text on the current page? the
.range.select function (alone) does not work, as in:

For Each opage In ActiveDocument.ActiveWindow.Panes(1).Pages
opage.Range.Select
Next

Any thoughts?


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

Greg Maxey

Roy,

Something like:

Sub SelectTextOnCurrentPage()

Selection.GoTo What:=wdGoToBookmark, Name:="\page"

End Sub
 
R

Roy Lasris

Jonathan and Greg,

Thanks. Guys. Any way that I could have discovered that on my own?

Roy
 
H

Helmut Weber

Hi Roy,
Any way that I could have discovered that on my own?
good question. No, I don't think so. Except endless
searching for related keywords. However, having a look
at "predefined bookmarks" in VBA help
might be a good advice.
---
Greetings from Bavaria, Germany
Helmut Weber, MVP
"red.sys" & chr(64) & "t-online.de"
Word XP, Win 98
http://word.mvps.org/
 

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