I'm trying to record a macro to automate something I commonly do with a newly-inserted picture, namely put it in a "frame" to make it moveable and resizeable. I do this via: right-click it > Format Picture > Layout tab > select "Square" Wrapping Style > OK But once in "recording" mode for the macro, I can't right-click the picture; and if I use the Word menu to get there, Format > Picture, the "wrapping style" buttons are inactive, can't be clicked. Is there a way around this, or can macros just not be applied when a picture is selected? Many thanks.
Hi Olórin, there are limits to recording macros. Some things just don't work. Try: Sub Test400A() Dim MyShape As Shape Set MyShape = Selection.InlineShapes(1).ConvertToShape MyShape.WrapFormat.Type = wdWrapSquare End Sub -- Greetings from Bavaria, Germany Helmut Weber, MVP WordVBA Vista Small Business, Office XP
"Helmut Weber" wrote in message news:j9tv34thqc180h6pvnchb9f1rdom2ib7en@4ax.com... > Hi Olórin, > > there are limits to recording macros. > Some things just don't work. > > Try: > > Sub Test400A() > Dim MyShape As Shape > Set MyShape = Selection.InlineShapes(1).ConvertToShape > MyShape.WrapFormat.Type = wdWrapSquare > End Sub > > -- > > Greetings from Bavaria, Germany > > Helmut Weber, MVP WordVBA > > Vista Small Business, Office XP That worked perfectly, Helmut - many thanks!