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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to make the WebBrowser control to scroll down automatically?

Status
Not open for further replies.

dsellos

Programmer
Apr 27, 2010
9
BR
Please someone help me.
For several days I seek a solution to create the command in VBA.

I am looking for a code that makes the page scroll down without using the mouse or keyboard. When the page loads, scroll down to the position I specified. The page will open in a WebBrowser on a UserForm.

Can you help me?
Thanks.
 


Hi,

What application are you coding in?

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Hi,

I am creating a web browser to view some pages from the server of my company in Excel. I am using VBA.

Thank you
 



What code do you have?

What library have you loaded to control the browser objects?

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 


I also asked for YOUR CODE, please.

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Hey... There is the code.

Private Sub UserForm_Initialize()

WebBrowser.Navigate2 "
Do
DoEvents
Loop Until Me.WebBrowser.ReadyState = READYSTATE_COMPLETE

WebBrowser.Document.body.doscroll
WebBrowser.Document.body.doscroll

End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top