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.
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.
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