Thread: Insert picture
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Cannabibal Cannabibal is offline
external usenet poster
 
Posts: 2
Default Insert picture

Hi,

I have to insert a picture into an excel 2000 worksheet within MATLAB R14,
using COM-commands.
I very new to it, the commmands that worked so far to insert text a

Excel = actxserver('Excel.Application');
%% open document (omitted), then
Activesheet = Excel.Activesheet;
....
Activesheet.Range(['A6']).Value = 'testvalue';

No I'm searching for the right object, method or property to insert a
picture, stored in a file (preferably) or in the clipboard.

I tried:

Activesheet.Range('A25').Select;
pic = Activesheet.Pictures.Insert('C:\mypic.tiff').Selec t

But I get the error message:
"No appropriate method or public field Pictures for class
Interface.Microsoft_Excel_9.0_Object_Library._Work sheet."

Dou you have any suggestions??
Thanks,
Cannabibal