D
Daniel M
I have a form i need to load a web page in but i need the web page for
completely finish loading before i go to the next step. I have created this
sample code to test this and am unable to get it to work. Can anyone help
with this?
I created a dummy form for testing. It contains 1 command button and the
web control. here is the code.
Private Sub Command1_Click()
With Me.wbbWebsite
.Navigate URL:="www.microsoft.com"
Do While .Busy
DoEvents
Loop
End With
With Me.wbbWebsite
.Navigate URL:="www.google.com"
Do While .Busy
DoEvents
Loop
End With
MsgBox "done"
End Sub
Now what i would like to see is the first web page (microsoft) finish
loading before the second page loads (google). What happens is msgbox pops
up immediately. Then the second page loads. I never see the first page.
Thanks.
daniel.
completely finish loading before i go to the next step. I have created this
sample code to test this and am unable to get it to work. Can anyone help
with this?
I created a dummy form for testing. It contains 1 command button and the
web control. here is the code.
Private Sub Command1_Click()
With Me.wbbWebsite
.Navigate URL:="www.microsoft.com"
Do While .Busy
DoEvents
Loop
End With
With Me.wbbWebsite
.Navigate URL:="www.google.com"
Do While .Busy
DoEvents
Loop
End With
MsgBox "done"
End Sub
Now what i would like to see is the first web page (microsoft) finish
loading before the second page loads (google). What happens is msgbox pops
up immediately. Then the second page loads. I never see the first page.
Thanks.
daniel.