Insert OLE Object Macro

C

chubby

I have installed MS Clip gallery from Office 2K so that I can use the clip
art in Office XP.
I want to setup a macro which is run from the menu so that I do not have to
go through the tedious Insert>Object>Microsoft Clip Gallery procedure for
inserting the 2K clipart.

I have the following macro which causes an error when the macro is run:
Selection.InlineShapes.AddOLEObject ClassType:="MS_ClipArt_Gallery.5"

What do I need to do to this code to stop the error?

Cheers
Josh
 

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