Run-time error '4198'

C

chubby

What is the run-time error '4198' Command failed caused by?

This error appears when I run insert an OLE object with the following macro:
Selection.InlineShapes.AddOLEObject ClassType:="MS_ClipArt_Gallery.5"

Thanks
 
C

Cindy Meister -WordMVP-

Hi Chubby,
What is the run-time error '4198' Command failed caused by?

This error appears when I run insert an OLE object with the following macro:
Selection.InlineShapes.AddOLEObject ClassType:="MS_ClipArt_Gallery.5"
Command failed is basically telling you Word can't execute the command in its
current state. Perhaps the cursor is in something where you can't execute the
command, for example.

In this case... I'm not certain a ClipArt can be inserted as an InlineShape.
Does it work if you use the Add for the SHAPES collection, instead?

Which version of Word/Office is this?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jan 24 2003)
http://www.mvps.org/word

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 

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