R
Rolf Westly
I do the following in my Word 2003 VBA code:
dim anch as range
activedocument.bookmarks("Start").Select
set anch = selection.range
addpicture(pic, false, true, 0, 0, 100, 100, anch)
(the bookmark is inside a tablecell)
When I check the left and top properties of the shape (the picture) they are
both 0(as I would expect). RelativeHorizontalPosition and
RelativeVerticalPosition are both wdRelative.....PositionColumn.
But if I move the upper left corner of the picture to the lower right corner
of the original picture position I thought I should have left = 100 and top =
100. But Left is 288 and top 99.
Why? Is there any way I can have Left and Top remain relative to the anchor?
dim anch as range
activedocument.bookmarks("Start").Select
set anch = selection.range
addpicture(pic, false, true, 0, 0, 100, 100, anch)
(the bookmark is inside a tablecell)
When I check the left and top properties of the shape (the picture) they are
both 0(as I would expect). RelativeHorizontalPosition and
RelativeVerticalPosition are both wdRelative.....PositionColumn.
But if I move the upper left corner of the picture to the lower right corner
of the original picture position I thought I should have left = 100 and top =
100. But Left is 288 and top 99.
Why? Is there any way I can have Left and Top remain relative to the anchor?