-
Close Internet Explorer Window
I want to know how to close an Internet Explorer Window, I have been trying
with the answers to close a window that someone answered to another, but
this no effect with IE.
Thanks for your attemption,
Foxfi
-
Re: Close Internet Explorer Window
Foxfi,
>I want to know how to close an Internet Explorer Window, I have been trying
>with the answers to close a window that someone answered to another, but
>this no effect with IE.
Here's one easy way to do it. First add a reference to Microsoft
Internet Controls (shdocvw.dll), then type:
Dim sw As ShellWindows
Dim ie As InternetExplorer
Set sw = New ShellWindows
For Each ie In sw
If ie.LocationURL = "http://www.some.url/" Then ie.Quit
Next
Set sw = Nothing
Mattias
____________________________________________
Mattias Sjögren - mattiass @ hem.passagen.se
http://hem.spray.se/mattias.sjogren/
Docendo discimus
-
Re: Close Internet Explorer Window
Foxfi,
>I want to know how to close an Internet Explorer Window, I have been trying
>with the answers to close a window that someone answered to another, but
>this no effect with IE.
Here's one easy way to do it. First add a reference to Microsoft
Internet Controls (shdocvw.dll), then type:
Dim sw As ShellWindows
Dim ie As InternetExplorer
Set sw = New ShellWindows
For Each ie In sw
If ie.LocationURL = "http://www.some.url/" Then ie.Quit
Next
Set sw = Nothing
Mattias
____________________________________________
Mattias Sjögren - mattiass @ hem.passagen.se
http://hem.spray.se/mattias.sjogren/
Docendo discimus
-
Re: Close Internet Explorer Window
>Here's one easy way to do it. First add a reference to Microsoft
>Internet Controls (shdocvw.dll), then type:
>
>Dim sw As ShellWindows
>Dim ie As InternetExplorer
>
>Set sw = New ShellWindows
>For Each ie In sw
> If ie.LocationURL = "http://www.some.url/" Then ie.Quit
>Next
>Set sw = Nothing
>
>Mattias
Thank you for help me, you have save my life.
-
Re: Close Internet Explorer Window
>Here's one easy way to do it. First add a reference to Microsoft
>Internet Controls (shdocvw.dll), then type:
>
>Dim sw As ShellWindows
>Dim ie As InternetExplorer
>
>Set sw = New ShellWindows
>For Each ie In sw
> If ie.LocationURL = "http://www.some.url/" Then ie.Quit
>Next
>Set sw = Nothing
>
>Mattias
Thank you for help me, you have save my life.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks