Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / July 2005

Tip: Looking for answers? Try searching our database.

Word Bookmarks

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
L.A. Lawyer - 09 Jul 2005 23:03 GMT
How do I find the vertical location on the page of bookmark (e.g., the
distance from the top of the page)?
Jezebel - 10 Jul 2005 00:28 GMT
Doc.Bookmarks("MyBookmark").Range.Information(wdVerticalPositionRelativeToPage)

> How do I find the vertical location on the page of bookmark (e.g., the
> distance from the top of the page)?
Jean-Guy Marcil - 10 Jul 2005 00:38 GMT
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))

Signature

Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.