Print internet pages through Word with macro.

S

Scott S

I'd like to create a macro that will open a page in Internet Explorer,
print it (or copy the text back to Word), and then move on to the next
page. I look at about 10 pages each morning (the web address is
constant) and would like to automate this process. Anyone have any
good ideas?

Thanks,

Scott
Dallas, TX
 
M

Mark Baird

Modify the following to fit your needs

Mark Bair

Sub PrintPages(WebPage as String

Dim oBrowser As SHDocVw.InternetExplore
Set oBrowser = New SHDocVw.InternetExplore

With oBrowse

.Visible = Fals
.Navigate WebPage

D
' Loop until the entire page is loaded then print
Loop Until .ReadyState = READYSTATE_COMPLET

.ExecWB OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSE

End Wit

End Sub
 
S

Scott S

Thanks for the help Mark, but I think the code is a little above me -
can't get it to work. I'll keep trying to figure it out.

Thanks.

Scott S.
Dallas TX
 

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