G
Guest
I added a web browser control on a form and added the
following code:
Dim w1 As SHDocVw.WebBrowser
If TypeOf Me.ActiveXCtl73.Object Is SHDocVw.WebBrowser Then
Set w1 = Me.ActiveXCtl73.Object
w1.Navigate2 "https://www.thewebpage"
Set w1 = Nothing
End If
I have since decided that I want to control, with an "On
Click" event, when the page is displayed. I remarked the
code out, but the page is still displayed when I open the
form. In fact, the page is password protect, and when I
open the form even in design view I am prompted for the
password.
Does anyone why the page is still loading, and how to stop
it?
Thanks in advance!
Dwight
following code:
Dim w1 As SHDocVw.WebBrowser
If TypeOf Me.ActiveXCtl73.Object Is SHDocVw.WebBrowser Then
Set w1 = Me.ActiveXCtl73.Object
w1.Navigate2 "https://www.thewebpage"
Set w1 = Nothing
End If
I have since decided that I want to control, with an "On
Click" event, when the page is displayed. I remarked the
code out, but the page is still displayed when I open the
form. In fact, the page is password protect, and when I
open the form even in design view I am prompted for the
password.
Does anyone why the page is still loading, and how to stop
it?
Thanks in advance!
Dwight