Hi James,
first, you don't need
Selection.Information(wdActiveEndAdjustedPageNumber)
You already know, on which page you are.
Selection.GoTo _
what:=wdGoToPage, _
which:=wdGoToAbsolute, _
Count:=i
You are on page i.
Second, the insertion point and the selection behave strange,
sometimes. They count units, even if they only touch them.
Example:
Selection.Collapse
MsgBox Len(Selection.Text) ' 1
Selection.MoveRight _
Unit:=wdCharacter, _
Count:=1, _
Extend:=wdExtend
MsgBox Len(Selection.Text) ' 1, too
So, whether there is a character selected or not,
the length of the selection is 1!
If all of a page is selected,
the selection touches the next page in a way.
On the last page of a document
Selection.Bookmarks("\page").Select
doesn't select all of the page, but leaves the last
paragraph mark unselected.
Not too much logic in it, IMHO.
---
Greetings from Bavaria, Germany
Helmut Weber, MVP
"red.sys" & chr(64) & "t-online.de"
Word XP, Win 98
http://word.mvps.org/