make all pictures "in line with text"

O

Octav

I have a large Word document with hundreds of pictures. They are all
floating objects at this time, but I would like to change that to "in
line with text." Is there a way to quickly do this? Selecting each
picture and changing it's layout is too time consuming. If I try to
record a macro, the in line with text layout style is grayed out and
cannot be selected. Same happens if I select multiple pictures and try
to apply formating to all. Any suggestions would be appreciated.
Thank you,

Octav
 
J

Jay Freedman

I have a large Word document with hundreds of pictures. They are all
floating objects at this time, but I would like to change that to "in
line with text." Is there a way to quickly do this? Selecting each
picture and changing it's layout is too time consuming. If I try to
record a macro, the in line with text layout style is grayed out and
cannot be selected. Same happens if I select multiple pictures and try
to apply formating to all. Any suggestions would be appreciated.
Thank you,

Octav

Hi Octav,

This is one of many situations in which you can write a macro that
works, but you can't get one from the recorder. The macro you need is
this:

Sub AllPixInline()
Dim oShp As Shape

For Each oShp In ActiveDocument.Shapes
oShp.ConvertToInlineShape
Next oShp
End Sub
 

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