D
dcarva
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
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