For some time I have viewed this message board and thank you. I however need some advice on how to gain control of particular controls on a web page that I navigate to within a userform. It is a login webpage and I know the names of the controls but I get a runtime error91 when I try to access them. I have tried assigning values to them by creating an object and then assigning a value but no luck. My reason for this is that I want to direct users within our organization to navigate part of our website but not all without gaining knowledge of the username and password. Within the userform I was able to use a
Private Sub WebBrowser1_NavigateComplete2(ByVal pDisp As Object, URL As Variant), which allowed me to monitor if a page was selected and hence close the application.
My code to date is as follows and any help will be appreciated...
Sub CallUserForm()
UserForm.Show
With UserForm.WebBrowser1
.Navigate "http://..."
End With
End Sub
Private Sub WebBrowser1_NavigateComplete2(ByVal pDisp As Object, URL As Variant), which allowed me to monitor if a page was selected and hence close the application.
My code to date is as follows and any help will be appreciated...
Sub CallUserForm()
UserForm.Show
With UserForm.WebBrowser1
.Navigate "http://..."
End With
End Sub