NP2322
asked on
Close IE Window
I'm trying to redirect the webpage that i'm on from it's current one back to the homepage once 'ok' has been hit. I'm running into problems while trying to accomplish this task. I just want the window to close once 'cancel' has been hit and a new window to open once the window has closed. I guess in this case a redirection would make most sense, but i'm also trying to learn how to close IE windows.
If rs.EOF Then
message = MsgBox "You need to login again!", 49, "Cannot Log User In"
if message = 1 then
Set IE = CreateObject("InternetExpl orer.Appli cation")
IE.navigate "http://localhost", 1
elseif message = 2
(Trying to close IE Window)
(Then I'm trying to open a new one and direct to http://localhost)
Else
*blah blah blah
Thanks,
NP
If rs.EOF Then
message = MsgBox "You need to login again!", 49, "Cannot Log User In"
if message = 1 then
Set IE = CreateObject("InternetExpl
IE.navigate "http://localhost", 1
elseif message = 2
(Trying to close IE Window)
(Then I'm trying to open a new one and direct to http://localhost)
Else
*blah blah blah
Thanks,
NP
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
IE.Quit