I got the following code:
If I use visible = true, several instances of IE can run, but since I want it to be invisible, I need a way to check if IE is already running.
What's my play?
Thanks in advance!
Code:
Function QuelltextAuslesen(jURL As String) As String
Dim IEApp As InternetExplorer 'Need a reference to Microsoft Internet Controls
Dim HTMLDoc As HTMLDocument 'Need a reference to Microsoft HTML Object Library
[...]
Set IEApp = New InternetExplorer
IEApp.Visible = False 'Some things don't work unless it's visible
IEApp.navigate jURL
'We need to wait for the website to complete loading
Do
DoEvents
Loop Until IEApp.readyState = READYSTATE_COMPLETE
Set HTMLDoc = IEApp.Document
QuelltextAuslesen = HTMLDoc.body.innerHTML
IEApp.Quit
Set IEApp = Nothing
End Function
If I use visible = true, several instances of IE can run, but since I want it to be invisible, I need a way to check if IE is already running.
What's my play?
Thanks in advance!