Word 2003 Built IN Macros

M

Marilyn

Hello All,

I'm attempting to use one of the Built In Macros (Word Commands) in Word
2003, however, the one that I want to use (FormatDrawingObjectWrapInline) is
disabled. I also tried to record a macro that records me changing the Wrap
style of my object to Inline, however, the options were greyed out and I was
unable to record the steps.

Is there a setting in Word that will enable all of the Word built in
Commands?

Thanks,
 
S

Stefan Blom

Apparently, some settings cannot be recorded with the macro recorder.

In this case, however, setting the wrapping to "In line with text" is not
that complicated. For example, the following line of code does that for the
currently selected object:

Selection.Range.ShapeRange(1).WrapFormat.Type = wdWrapInline

And the following code does the same for the *first* shape in a document:

ActiveDocument.Shapes(1).WrapFormat.Type = wdWrapInline
 

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