L.A. Lawyer was telling us:
L.A. Lawyer nous racontait que :
How do I find the vertical location on the page of bookmark (e.g., the
distance from the top of the page)?
'_______________________________________
Dim myrange As Range
Dim vertPosition As Single
Set myrange = ActiveDocument.Bookmarks("Test").Range
vertPosition = Round(PointsToInches(myrange _
.Information(wdVerticalPositionRelativeToPage)), 2)
'_______________________________________
But for Word 97, remove the Round(...) part becasue it was not in the VBA
model then.
vertPosition = PointsToInches(myrange _
.Information(wdVerticalPositionRelativeToPage))
--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site:
http://www.word.mvps.org