Re: Switch all graphics in a document from "floating" to "inline-centered" by andreas
andreas
Thu Apr 19 18:05:06 CDT 2007
On 17 Apr., 14:36, Helmut Weber <nbhymsjxd...@mailinator.com> wrote:
> Hi Andreas,
>
> Sub Test405()
> Dim oShp As Shape
> For Each oShp In ActiveDocument.Shapes
> oShp.ConvertToInlineShape
> Next
> End Sub
>
> If I select an inlineshape and look at "format picture", "layout",
> "wrapping style", then all options in "horizontal alignment"
> are greyed out. Understandably, as centered and inline with text are,
> as far as I see, not compatible.
>
> There is a horizontallineformat property of an inlineshape,
> but this seems to be somewhat misleading.
> At least I coundn't get it to do anything sensible.
>
> However, if there is no text in the paragraph,
> which holds the inlineshape, then centering that paragraph
> might be what you want.
>
> HTH
>
> --
> Greetings from Bavaria, Germany
>
> Helmut Weber, MVP WordVBA
>
> Win XP, Office 2003
> "red.sys" & Chr$(64) & "t-online.de"
Thank you Helmut for your assistance, It is working
Regards, Andreas