How can wrap of the text for image?

A

avkokin

The document has an text and an image within the text. I need wrap of
the text for this image. How I can do it with help VBA? Thank you.
 
H

Helmut Weber

Hi Avkokin,

the image is an inlineshape, very probably.
You have to convert it to a shape, like

Selection.InlineShapes(1).ConvertToShape

and then set the result's (shaperange) wrap.format, like

Selection.ShapeRange.WrapFormat.Type = wdWrapTight


--
Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"
 
A

avkokin

Hi Avkokin,

the image is an inlineshape, very probably.
You have to convert it to a shape, like

Selection.InlineShapes(1).ConvertToShape

and then set the result's (shaperange) wrap.format, like

Selection.ShapeRange.WrapFormat.Type = wdWrapTight

--
Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"

Danke sehr, Helmut! Thank you very much.
 
Top