Shape Coordinates

S

Steven James

Hi,
I'm wringing a word vba application that is intended to mark each
picture in a document by overwriting it with a shape.
(And yes i know i could use addShape and use the same anchor. but this will
cause a problem later)

My big problem is this. How do I identify the absolute coordinates of a
shape? for most msoPicture shapes this is simply
matter of looking at the Top and Left properties. However, if the image has
paragraph alignment the scheme falls over.
Having looked at the docs I think what I need to do is look at the anchor
property and work out the absolute coordinates from that and then work back.
Simple? hell no...so How do I work out the absolute coordinates of a
paragraph?

If there is no simple answer to this, them some blue sky thinking would also
be appreciated. is there are way of converting all paragraph aligned shapes
to page alignment. I don't care about trashing the content of the document
as all this will happen behind the scenes.

Any help would be appreciated

Regards
Steven
 

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