Does anyone now what is causing this problem and how I can fix it?
Code: Select all
Private Sub Form_Current()
wbbWebsite.Navigate URL:="http://www.yahoo.com"
End Sub
Private Sub wbbWebsite_Updated(Code As Integer)
Dim MaxScrollY As Long
On Error Resume Next
With Me.wbbWebsite.Document
MaxScrollY = .Body.ScrollHeight
' scroll down half page
.ParentWindow.ScrollTo 0, MaxScrollY / 2
.Body.Scroll = "no"
.Body.Style.Border = "none"
End Sub