-
I don't know if this is possible but I would like to know if it is (and if so how ;)).
I need some way of saving a web page as an htm file, but also the web page has about 200 links on it to other pages which will also need saving as htm files.
Now I could do this manually (real pain!!) but is there anyway I could automate this with VB??
-
This will save a webpage along with everything on it.
Code:
'Needed: Webbrowser1
webbrowser1.ExecWB OLECMDID_SAVEAS, OLECMDEXECOPT_PROMPTUSER
-
I will try that as soon as I get the MSDN help installed on my machine, as at the moment I've never used the web browser control.
Cheers.
-
Well, getting started, here are the basic commands you need:
Code:
'Go to the previous webpage
WebBrowser1.GoBack
'Go to the present webpage
WebBrowser1.GoForward
'Go to the default IE home
WebBrowser1.GoHome
'Go to the default search page
WebBrowser1.GoSearch
'Refresh the current webpage
WebBrowser1.Refresh
'Navigate to a webpage
WebBrowser1.Navigate "www.vb-world.net"