LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #10   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Insert Image in an sheet

Did you try this suggestion:

Sheet1.OLEObjects("Image1").Object.Picture _
= LoadPicture("\\WIN2K3\IMAGES\8000\8029.JPG")



Rupesh wrote:

it worked fine for intellisense, but still facing same problem

myImage.Picture = LoadPicture("c:\rupesh\8022.JPG")

gives me automation error - unspecified error.

is it somthing to do with my Excel installation ? is somthing missing. I
have used this earlier also on different machine, long ago.

need to solve this ASAP

please help

"Dave Peterson" wrote:

Drop that "Sheet1.Image1.Picture = Nothing" line.

Then use a variable to represent the image.

Dim myImage As Image
Set myImage = Sheet1.Image1
myImage. and you should see the intellisense helping you.

Rupesh wrote:

what i see problem as when we type
sheet1.image1. (then automatically dropdown of the related properties is
not coming & there may be some problem

Pls help
Rupesh

"Rupesh" wrote:

I am trying to add image based on the parameters. but it gives me error

automation error / unspecified error

-2147467259(80004005)

following is my code (tring to run hardcoded image file)

Sub Addimage()
Sheet1.Image1.Picture = Nothing
Sheet1.Image1.Picture = LoadPicture("\\WIN2K3\IMAGES\8000\8029.JPG")

End Sub

Request Pls help ASAP

Thankyou




--

Dave Peterson


--

Dave Peterson


 
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 image, get name of image Rick S. Excel Programming 3 April 15th 08 07:05 PM
Insert image from Cell value Corey Excel Programming 0 August 13th 07 12:26 AM
insert image vj5 Excel Programming 10 July 14th 06 02:11 PM
automatically insert each image to its own sheet jwewing23 Excel Programming 0 March 16th 05 08:41 PM
How can i insert image in excel sheet (SYLK) format hYoussef Excel Programming 1 February 28th 05 05:00 AM


All times are GMT +1. The time now is 07:03 AM.

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

About Us

"It's about Microsoft Excel"