I have a jpg picture from the internet that I'm trying to save with VBA, using a file name that is in a cell. I'm using Excel 2003. I have:
Set hpic = ie.Document.getElementsByTagName("IMG")
hpic.Application.SaveAsFilename = "C:\pictures\" & a$
Set hpic - grabs the picture from my browser
a$ contains the file name for the saved file
I know that I actually have a picture object in hpic because I can put the jpg picture into the spreadsheet, but I can't seem to save it. When I try to save there is no visible error, the macro runs without any dialog boxes showing. I've tried several different commands.
Thanks in advance for any help with this.
Set hpic = ie.Document.getElementsByTagName("IMG")
hpic.Application.SaveAsFilename = "C:\pictures\" & a$
Set hpic - grabs the picture from my browser
a$ contains the file name for the saved file
I know that I actually have a picture object in hpic because I can put the jpg picture into the spreadsheet, but I can't seem to save it. When I try to save there is no visible error, the macro runs without any dialog boxes showing. I've tried several different commands.
Thanks in advance for any help with this.