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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top