Hello,
If you have a chart copied from Excel chart, then you could use the following code to set it behind text.
Dim sh As Shape
Set sh = ActiveDocument.Shapes(1)
sh.WrapFormat.Type = wdWrapBehind
If the chart is created in Word, you could use the following code
Dim inlineSh As InlineShape
Set inlineSh = ActiveDocument.InlineShapes(1)
inlineSh.ConvertToShape.WrapFormat.Type = wdWrapBehind
The difference is that the chart would be Shape if you paste from Excel and would be InlineShape if you create it in Word.
Regards,
Celeste
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to
MSDN Support, feel free to contact MSDNFSF@microsoft.com.