Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Cannot load picture from file!

Hello!

I'm writing convertor from report-generator to Excel fromat, and have a
problem: cannot insert picture into Excel worksheet. I try to use this code
to save picture as a file on disc, and then load it to worksheet:

------------------------------------------------
SavePicture myPicture, fnm
xlWsht.Shapes.AddPicture fnm, False, True, rng.Left, rng.Top, rng.Width,
rng.Height

FileSystem.Kill fnm
------------------------------------------------

This example works proprely, while type of picture is Bitmap. But when I try
to do it with Icon or Metafile, excel alerts:

"The specified file wasn't found."

Maybe there is any other way to insert icons and metafiles, or to convert
them into Bitmap format.
Please, help!
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
File did not load completely Jackie Lamorie New Users to Excel 1 April 16th 05 12:29 PM
How to load a .bmp picture into a cell? Andrew Excel Programming 1 February 15th 05 04:25 AM
File will not load Jack Sheet Excel Discussion (Misc queries) 3 December 4th 04 01:41 PM
Is it possible to load an .xls file Jako[_55_] Excel Programming 2 August 2nd 04 11:29 PM
How to load a help file using VBA Ian[_9_] Excel Programming 2 January 30th 04 02:19 PM


All times are GMT +1. The time now is 10:23 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"