LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Import picture into Excel cell

Sorry for the double post. My ignorance.

This is what I needed. Great.
Thanks Joel.



"Joel" wrote in message
...
what you are doing is wrong

Private Sub Worksheet_Activate()
WebBrowser1.Navigate "www.worldcommunitygrid.org/images/pb/faah_0.jpg"
End Sub


1) The worksheet Activate will load the picture everytime you change the
worksheet. You only need to load the picture once.

2) You don't need to use a web browser function. Just inserting the
picture
will work. Here is the code I think you should use

Sub GetPicture()

PictureURL = "http://www.worldcommunitygrid.org/images/pb/faah_0.jpg"

Set MyPict = ActiveSheet.Pictures.Insert(PictureURL)

End Sub

I tested this code and it work just like it should.

"Gandalf the White" wrote:

Joel, again thanks for the reply, but again I'm not into VB.
Your code is like Greek to me.
Multiple lines of Greek is still Greek. :)

The code from my post seems to create a small IE window inside the cell.
It's just not bringing in the image.
Can someone show me how to make "my" code work?

All assistance gratefully appreciated.
Gandalf



 
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
Connect a number to a picture bank and import that picture to exce Dennis Hedo Excel Discussion (Misc queries) 1 March 22nd 10 02:17 PM
import a picture into a pre defined range of cells - excel 2003 Tog Excel Discussion (Misc queries) 1 February 16th 10 12:24 AM
How can I Import picture contents into Excell cell array numbers? CLR Excel Worksheet Functions 0 November 29th 06 06:38 PM
How can I Import picture contents into Excell cell array numbers? Hard Nut Excel Worksheet Functions 0 November 29th 06 03:24 PM
how do i import a picture or drawing into an excel spreadsheet? ucastores Excel Discussion (Misc queries) 6 December 1st 04 05:40 AM


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