Jeremy was telling us:
Jeremy nous racontait que :
This is any page, not just the first or end page. If range is not
possible is it possible with a paragraph?
You could compare the currently selected selection range.start value with
the current page range.start value:
'_______________________________________
Dim curPageRge As Range
Dim curSelRge As Range
Set curSelRge = Selection.Range
curSelRge.Collapse wdCollapseStart
Set curPageRge = curSelRge.Bookmarks("\page").Range
If curSelRge.Start = curPageRge.Start Then
MsgBox "Selection is at top of page."
Else
MsgBox "Selection is NOT at top of page."
End If
'_______________________________________
--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site:
http://www.word.mvps.org