How to get the correct position relative to page of an Object?

Q

qnever

When I tried to get the vertical position of an object, such as paragraph,
hyperlink, I got some troubles.
1.When the Word Application is set unvisible, Some vertical positions gotten
are wrong. For example, I want to get the position of a paragraph, but result
is the position of the first paragraph.
2.I can't use Range.Infomation(wdVerticalPositionRelativeToPage) to get
positons correctly.
3.Some times use the position of the second char in an Object can get the
correct position.
My method is this: First select an object, then use the
Selection.Infomation(wdVerticalPositionRelativeToPage).
These problems really confused me. Anybody who know the reasons please
help. Thanks very much.
 

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