A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Links and Linking
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

VBA : A picture from http://.../Image.gif



 
 
Thread Tools Display Modes
  #1  
Old October 1st, 2003, 04:44 PM
VUILLERMET Jacques
external usenet poster
 
Posts: n/a
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  
Old October 1st, 2003, 06:43 PM
Jake Marx
external usenet poster
 
Posts: n/a
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  
Old October 1st, 2003, 09:24 PM
VUILLERMET Jacques
external usenet poster
 
Posts: n/a
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.




 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


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


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