How to automate save as in SHDocVw?

B

Brett

I'm trying to save a webpage in the IE object (SHDocVw) via save as "web
page complete". Using this code:

Me.IE_Inst.ExecWB(SHDocVw.OLECMDID.OLECMDID_SAVEAS,
SHDocVw.OLECMDEXECOPT.OLECMDEXECOPT_DONTPROMPTUSER, "C:\\Test Folder\\Some
Folder\\mypage.html", Nothing)

Everything works fine but the dialog box that prompts me to save waits for a
user click. Any ideas how to automate that click?

Thanks,
Brett
 
H

Herfried K. Wagner [MVP]

Brett said:
I'm trying to save a webpage in the IE object (SHDocVw) via save as "web
page complete". Using this code:

Me.IE_Inst.ExecWB(SHDocVw.OLECMDID.OLECMDID_SAVEAS,
SHDocVw.OLECMDEXECOPT.OLECMDEXECOPT_DONTPROMPTUSER, "C:\\Test Folder\\Some
Folder\\mypage.html", Nothing)

Everything works fine but the dialog box that prompts me to save waits for
a user click. Any ideas how to automate that click?

For security reasons that's not supported since IE4:

<URL:http://groups.google.de/groups?selm=L3yAKK0RCHA.2372@cpmsftngxa07>
 

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