Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.excel.links
external usenet poster
 
Posts: 2
Default VBA : A picture from http://.../Image.gif

With Excel 2000, in a workbook, I want to show a picture (in a shape for
example) that I can pick up directly from an HTTP URL :

http://MyServer/MyImage.jpg

I don't want to store it, just declare a link with the URL.

I've tried with Shape/Hyperlink/PublishObjects but I can't.

How to do ?

(The final goal is a dynamic URL that I can change by VBA.)

Jacques.


  #2   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.excel.links
external usenet poster
 
Posts: 860
Default A picture from http://.../Image.gif

Hi Jacques,

You can do it in VBA like this:

Sheet1.Shapes.AddPicture "http://server/folder/image.gif", msoTrue,
msoFalse, _
100, 100, 100, 50

Hopefully, you'll know the height and width, because those are required
arguments to the AddPicture method.

--
Regards,

Jake Marx
www.longhead.com


VUILLERMET Jacques wrote:
With Excel 2000, in a workbook, I want to show a picture (in a shape
for example) that I can pick up directly from an HTTP URL :

http://MyServer/MyImage.jpg

I don't want to store it, just declare a link with the URL.

I've tried with Shape/Hyperlink/PublishObjects but I can't.

How to do ?

(The final goal is a dynamic URL that I can change by VBA.)

Jacques.


  #3   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.excel.links
external usenet poster
 
Posts: 2
Default A picture from http://.../Image.gif


You're right !

Thanks a lot !!!

Jacques.


"Jake Marx" a écrit dans le message de
...
Hi Jacques,

You can do it in VBA like this:

Sheet1.Shapes.AddPicture "http://server/folder/image.gif", msoTrue,
msoFalse, _
100, 100, 100, 50

Hopefully, you'll know the height and width, because those are required
arguments to the AddPicture method.

--
Regards,

Jake Marx
www.longhead.com


VUILLERMET Jacques wrote:
With Excel 2000, in a workbook, I want to show a picture (in a shape
for example) that I can pick up directly from an HTTP URL :

http://MyServer/MyImage.jpg

I don't want to store it, just declare a link with the URL.

I've tried with Shape/Hyperlink/PublishObjects but I can't.

How to do ?

(The final goal is a dynamic URL that I can change by VBA.)

Jacques.




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
start http://..... vs hyperlink http://..... ton de w Excel Discussion (Misc queries) 0 May 4th 07 01:42 PM
Charts to Image or Picture? Bill Elerding Charts and Charting in Excel 2 May 5th 05 12:54 PM
How do I convert a picture (bmp or jpg) to a excel button image? . Fausto Excel Discussion (Misc queries) 0 April 1st 05 06:39 PM
How do copy text from a picture/image & make it available for edi. copy text from image to excel Excel Discussion (Misc queries) 2 March 18th 05 04:35 PM
How to copy text from a picture/image & make it available for edi. Subuu Excel Discussion (Misc queries) 0 March 17th 05 07:11 PM


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