Use macro to insert web image into document

March 21st, 2010
Hello,

I recorded a Word macro that inserts an image that exists on the internet. I
started recording and went to Insert->Picture->From File. Then I inserted the URL in the path bar. The file inserted fine and the vba code was recorded. However, when I play back the macro, it says "Error 5152" - something about the file not being valid. Anyone know how I can do something like this? I have images on a webserver that I want to display on my page using a macro. I am using Word 2000. Here is the vba code it records:

Selection.InlineShapes.AddPicture FileName:= _
"http://www.site.com/test.gif", _
LinkToFile:=False, SaveWithDocument:=True

Thanks!
Danny




#If you have any other info about this subject , Please add it free.#
Your name:
E-mail:
Telphone:

Your comments:


If you have any other info about Use macro to insert web image into document , Please add it free.

Posted in dballastages.com | edit