Saving Webpage using MS Internet Control

  • Thread starter Thread starter Abhishek
  • Start date Start date
A

Abhishek

Hello,
I would like to know how can I download html files from the
internet and save them programmatically. I want to perform
the task in VBA. Currently I am using Microsoft Internet Controls shipped
with Internet Explorer and the ExecWB method supported.
I was able to invoke the saveas dialog using the same, but I would like that
to happen automatically without user intervention.
Example :
ie.ExecWB OLECMDID_SAVEAS, OLECMDEXECOPT_DONTPROMPTUSER,
"C:\Temp\Testing.htm"

Another problem is that the resources embedded in the HTML are not
downloaded using this mechanism.
I would want a functionality similar to IE SaveAs Option.
Any guidance would be helpful.

Thanks,
Abhishek.
 
For a better, faster response, I would try and post this query to one of the
programming newsgroups - such as:
news://msnews.microsoft.com/microsoft.public.inetsdk.programming.scripting.webbrowser_ctl
news://msnews.microsoft.com/microsoft.public.inetsdk.programming.scripting.vbscript
*news://msnews.microsoft.com/microsoft.public.windows.inetexplorer.ie5.programming.xxxxxx
*news://msnews.microsoft.com/microsoft.public.windows.inetexplorer.ie55.programming.xxxxxx
news://msnews.microsoft.com/microsoft.public.frontpage.programming.vba
*multiple groups in this hierarchy.
 
Back
Top