uprichard
Programmer
- May 2, 2002
- 16
I create an IE browser window using the following:
Dim oIE As Object
Set oIE = CreateObject("InternetExplorer.Application")
If oIE Is Nothing Then
LogEntry "Could not invoke Internet Explorer Object"
Exit Function
End If
oIE.Visible = True
Set GetBrowser = oIE
Set oIE = Nothing
I can now drive the application. But the problem is that sometimes the application will close this browser window and open a new one.
Question: How can I reset the object "GetBrowser" to point to the new IE window?
Thanks,
Dim oIE As Object
Set oIE = CreateObject("InternetExplorer.Application")
If oIE Is Nothing Then
LogEntry "Could not invoke Internet Explorer Object"
Exit Function
End If
oIE.Visible = True
Set GetBrowser = oIE
Set oIE = Nothing
I can now drive the application. But the problem is that sometimes the application will close this browser window and open a new one.
Question: How can I reset the object "GetBrowser" to point to the new IE window?
Thanks,