Hi,
I'm trying to open another IE window with VBS right after
the previous one has been closed.
Playing around with the OnQuit event helps, but somehow the
first IE windows crash.
Could anybody help me, please? Thanks.
Stefan
##############################
Option Explicit
Dim objIE
Dim Counter, Max
Counter = 0
Max = 5
Call ShowIE
Sub ShowIE
Set objIE = WScript.CreateObject("InternetExplorer.Application", "IE_")
objIE.Visible = True
objIE.navigate "http://www.yahoo.com"
While True
WScript.Sleep 5
Wend
End Sub
Sub IE_onQuit
Counter = Counter + 1
If Counter <= Max Then
Call ShowIE
End If
End Sub