How do I programatically scroll down on a webpage inside the MS Web Control?

I have the MS Web browser control on a form.
I have it load a page that is longer than the viewing area.
How can I code so that the page will automatically slowly scroll down to the end while it is being viewd?
(speed variable please)
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Mike TomlinsonMiddle School Assistant TeacherCommented:
Experiment with...

Option Explicit

Private Sub Form_Load()
    Timer1.Enabled = False
    Timer1.Interval = 250
    WebBrowser1.Navigate ""
End Sub

Private Sub WebBrowser1_DocumentComplete(ByVal pDisp As Object, URL As Variant)
    Timer1.Enabled = True
End Sub

Private Sub Timer1_Timer()
    If WebBrowser1.Document.body.scrollTop < WebBrowser1.Document.body.scrollheight Then
        WebBrowser1.Document.parentWindow.scrollTo 0, WebBrowser1.Document.body.scrollTop + 1
        Timer1.Enabled = False
    End If
End Sub

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
yyuubum2Author Commented:
Idle Mind:
You've done it...just one more tweek for more points?
Can you include a test to see if the page has scrolled to the end or the max on the scrollbar?
In otherwords, when its finished?

Mike TomlinsonMiddle School Assistant TeacherCommented:
I couldn't find any obvious ways to figure out if I'd reached the ~end~.

I'll keep digging...
yyuubum2Author Commented:
still hoping you can help
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.