Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 691
Default Insert picture

Try searching for words like
catalog picture*

If it really is for a catalog, I'd suspect that Word would be better. There
have also been postings involving Access.

Merge Pictures and Words - Oh My!, by Cindy Meister, creates a catalog from text wording and external pictures from an Excel
database. [photos, photographs] Also see extracting JPG / GIF files
[-- file:///C:/copiedsite/dmcritchie/excel/xl2gif.htm --] from an Excel document (charts).
http://www.computorcompanion.com/LMMArticle.asp?ID=126
Computer Companion, E-zine article

Linking to Photos
[-- http://groups.google.com/groups?as_u...ontextures.com --], Debra Dalgleish (short posting), similar,
less explanation.


---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"Cannabibal" wrote in message ...
Come on, there must be somebody here who has a hint or comment...

Cannabibal


"Cannabibal" wrote:

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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert Picture McCBeth Excel Worksheet Functions 2 March 17th 10 06:20 PM
Insert Picture [email protected] Excel Discussion (Misc queries) 2 June 28th 07 06:27 PM
how do I insert picture into cell so vlookup can return picture? ah Excel Worksheet Functions 1 May 1st 07 04:38 AM
insert a picture in to a comment but picture not save on hard disk Pablo Excel Discussion (Misc queries) 0 February 21st 07 03:48 PM
insert picture BillGwyer Excel Discussion (Misc queries) 1 March 4th 05 06:37 PM


All times are GMT +1. The time now is 08:06 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"