Accessing format picture layout tab using macros

B

Bill Hughes

Greetings,

I am trying to change a picture from inline to square using the layout tab
while recording a macro. The keyboard sequence Atl+o,i,l,Alt+q,c,Enter from
the keyboard works fine. When I try to record the macro the options on the
Layout tab are greyed out. Is this a feature or a bug?

Can Someone help me with this?
 
J

Jay Freedman

Greetings,

I am trying to change a picture from inline to square using the layout tab
while recording a macro. The keyboard sequence Atl+o,i,l,Alt+q,c,Enter from
the keyboard works fine. When I try to record the macro the options on the
Layout tab are greyed out. Is this a feature or a bug?

Can Someone help me with this?

I think in the mind of some designer at Microsoft, it was a necessary
restriction -- not a feature that they wanted, but needed so they
could avoid something undesirable.

The solution is to give up on the recorder and just write the macro to
do the job without the dialog.

Sub WrapInlineToSquare()
Dim oShp As Shape

If Selection.InlineShapes.Count = 0 Then
MsgBox "Please select an inline picture."
Exit Sub
End If

Set oShp = Selection.InlineShapes(1).ConvertToShape
oShp.WrapFormat.Type = wdWrapSquare
End Sub
 
Joined
Apr 9, 2012
Messages
4
Reaction score
0
Format picture options grayed out

I'm having the same problem, without trying to record a macro. When I insert a picture (from file, copy-paste, paste-special as...whatever), every time, it doesn't allow me to do almost ANY of the layout formatting. It's defaulting to "In Line" and "text wrapping" is grayed out, and all the other layout options are grayed out.

I'm trying to create a new version of an exact document that I created last year in an older version of word, and was able to insert, align, format, etc. images with no problem. Now on Word 2011, I can't format the layout of the images at all. What gives?
 

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