I have tried to create a macro in Word 2007 to format the text wrapping of pictures to TopandBottom. I'm not very knowlegeable about VBA code, but using examples and help, I've come up with the following.
Sub PictureFormat()
Set myDocument = ActiveDocument
With myDocument.Shapes(1).PictureFormat
Selection.ShapeRange.WrapFormat.Type = wdWrapTopandbottom
.RelativeVerticalPosition = _
wdRelativeVerticalPositionParagraph
.Left = CentimetersToPoints(3)
.Right = CentimetersToPoints(3)
.Top = CentimetersToPoints(2)
.bottom = CentimetersToPoints(2)
.WrapFormat.DistanceLeft = 0.2
.WrapFormat.DistanceRight = 0.2
End With
End Sub
There may be code that isn't necessary and I am sure I am missing some essential code. All I want to be able to do is click on a picture, hit a macro that changes the text wrapping to Top and Bottom so that any text will appear under the picture. If anyone can help me, I would be sooo grateful. I've tried really hard to figure out VBA code, but I'm lost.
Thank you in advance
Danielle