Saving Webpage using MS Internet Control

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.
 
J

Jon Kennedy

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top