ineedhelplease
Technical User
I am trying to use the getobject method to use the current open session of IE, but I receive an error on the following variable declariation:
Dim objIE As InternetExplorer
Compile error: User-defined type not defined
What do I need to do to be able to declare objIE as IE?
Thanks everyone for your help.
FYI here is the exact function:
--------------start--code---------------
Dim objIE As InternetExplorer
Dim iURL As String
iURL = "objIE = GetObject("InternetExplorer.Application")
With objIE
.Navigate iURL
End With
--------------end--code-----------------
Very simple function that I would like to use with an already open session of IE.
Dim objIE As InternetExplorer
Compile error: User-defined type not defined
What do I need to do to be able to declare objIE as IE?
Thanks everyone for your help.
FYI here is the exact function:
--------------start--code---------------
Dim objIE As InternetExplorer
Dim iURL As String
iURL = "objIE = GetObject("InternetExplorer.Application")
With objIE
.Navigate iURL
End With
--------------end--code-----------------
Very simple function that I would like to use with an already open session of IE.