Quantcast
Channel: VBForums - ASP, VB Script
Viewing all articles
Browse latest Browse all 688

Detecting if multiple IE windows are open...

$
0
0
Hi. I'm building a macro that detects all the open IE windows. The requestor wants the macro to detect any random number of IE windows. The reason for this is that not every person who uses it will have the same number of windows open.

Code:

Dim strWindow, objIE

Set objIE = CreateObject("InternetExplorer.Application")

strWindow = "Windows Internet Explorer provided by Microsoft"

if objIE.isVisible(strWindow) = true then
  for each count in strWindow
  next
end if

I'm sure this is incorrect as, when I run the macro, it doesn't do anything. However, I don't know what is wrong.

Viewing all articles
Browse latest Browse all 688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>