Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

saving a web page in code 1

Status
Not open for further replies.

PWise

Programmer
Dec 12, 2002
2,633
US
I am trying to write a sub to load a web page and save it on my local computer something like this
Code:
Dim ie As InternetExplorer
Set ie = CreateObject("InternetExplorer.Application")
ie.navigate "[URL unfurl="true"]http://www.tek-tips.com/viewthread.cfm?qid=1222444&page=1"[/URL]
ie.Visible = True
[COLOR=red][b]ie.Saveas "c:\mypathe\....html"[/b][/color red]
ie.Quit
Doing it manually the steps will be file > saveas>saveastype webpagecomplete
I can not find any thing like this in the objects properties
Can any one point me in the right direction a API perhaps?
 
thanks phv for pointin me in the right direction
Code:
ie.ExecWB OLECMDID_SAVEAS, 0
brings up the correct dialog box but i can not get it to save without user input
 
And what about this ?
ie.ExecWB OLECMDID_SAVEAS, 2, "c:\\mypathe\\filename.html"

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
thanks phv
but this does not get me any further

note. no need for double backslash
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top