S
sotiris5000
Hello,
I was wondering if you guys could help me.
I am trying to write a macro to format a picture I have pasted into a
word document.
Unfortunately the wrap to text and advanced functions of the format
picture tab are not available when writing a macro.
I have seen someone here had the same problem and the following code
was posted:
With myShape
.WrapFormat.Type = wdWrapTopBottom
.WrapFormat.DistanceTop = InchesToPoints(0.2)
.WrapFormat.DistanceBottom = InchesToPoints(0.2)
.RelativeHorizontalPosition =
wdRelativeHorizontalPositionPage
.Left = wdShapeCenter
The thing is my requirements are different to this and now matter how
I change the code above I can't get it to work.
Can anyone help please?
I need the options
Wrap type = Square
Horizontal Alignment = Other
and in the advanced options
Absolute position 4.23 from the right of the page
Absolute position 0.00 below paragraph.
I know this is quite complicated and a big ask - but if anyone can
help it would be amazing as i have to format pictures according to
this layout about 20 times a day as part of my job and a macro would
totally help me out.
Thanks,
Sotiris
I was wondering if you guys could help me.
I am trying to write a macro to format a picture I have pasted into a
word document.
Unfortunately the wrap to text and advanced functions of the format
picture tab are not available when writing a macro.
I have seen someone here had the same problem and the following code
was posted:
With myShape
.WrapFormat.Type = wdWrapTopBottom
.WrapFormat.DistanceTop = InchesToPoints(0.2)
.WrapFormat.DistanceBottom = InchesToPoints(0.2)
.RelativeHorizontalPosition =
wdRelativeHorizontalPositionPage
.Left = wdShapeCenter
The thing is my requirements are different to this and now matter how
I change the code above I can't get it to work.
Can anyone help please?
I need the options
Wrap type = Square
Horizontal Alignment = Other
and in the advanced options
Absolute position 4.23 from the right of the page
Absolute position 0.00 below paragraph.
I know this is quite complicated and a big ask - but if anyone can
help it would be amazing as i have to format pictures according to
this layout about 20 times a day as part of my job and a macro would
totally help me out.
Thanks,
Sotiris