Link to home
Start Free TrialLog in
Avatar of NP2322
NP2322Flag for United States of America

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("InternetExplorer.Application")
            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
Avatar of jkaios
jkaios
Flag of Marshall Islands image

Have you tried the quit method?

  IE.Quit
ASKER CERTIFIED SOLUTION
Avatar of hes
hes
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial