Align Drawing Object

M

mamue

Hi,
i try to programmatically edit every drawing object in a word (word
2000) document. i want to change the vertical alignment from
"page" (fix) to "paragraph" (relative).
--------------
For Each aShape In ActiveDocument.Shapes

aShape.Select

aShape.RelativeVerticalPosition =
wdRelativeVerticalPositionParagraph

Next aShape
--------------

now the drawing is placed with a certain space (= old distance to the
top page border) to the paragraph. this means: the new value for the
space was not calculated but taken from the old alignment.
i tried to move my drawing afterwards with the incrementLeft() method
but i don't have a value like "marginToParagraph". Any suggestions for
my situation?

thanks in advance, matthias
 

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