Right method to insert Excel file as icon?

E

Ed from AZ

I can paste in a copied Excel file as an icon using:
rng.PasteSpecial IconIndex:=1, Link:=False, _
Placement:=wdInLine, DisplayAsIcon:=True, _
IconFileName:="C:\Documents and Settings\All Users\xlicons.exe", _
IconLabel:="MyFile"

What method do I use if I don't want to copy the file, but simply
provide the file path to the code and have it inserted? Is this
AddOLEObject? InsertFile? or something else?

Ed
 

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