
Signature
Stefan Blom
Microsoft Word MVP
> "Simon Woods" wrote in message
>>
[quoted text clipped - 8 lines]
>> and width. I've tried recording a macro to see what goes on behind
>> the scenes but it didn't give me much help.
> A range is defined by its Start and End properties; see Word VBA Help
> and http://word.mvps.org/FAQs/MacrosVBA/index.htm.
Thanks Stefan.
As I'm trying to get the dimensions of the range but the range includes
images as well as text. I wondered whether I could get the position of the
start char on the page and get the position of the end char on the page but
there's a problem if there is a graphic which is locate to the right or
bottom of the last char. Similar is there is a graphic situated to the left
or top of the start char.
Am I missing something in what you're suggesting. Or will I need to do the
math and work out the position of inline shapes relative to the text to see
if either of these scenarios apply?
Thanks
Simon
Stefan Blom - 10 Apr 2007 08:06 GMT
A range in itself does not have a "size" other than its start and end
properties; the actual space it occupies depends on the size of text
(including any inline objects).
As far as I know, the only way to get the position of the insertion
point on a page is to use the Information property:
x = Selection.Information(wdHorizontalPositionRelativeToPage)
y = Selection.Information(wdVerticalPositionRelativeToPage)

Signature
Stefan Blom
Microsoft Word MVP
> > "Simon Woods" wrote in message
> >>
[quoted text clipped - 28 lines]
>
> Simon