
shdocvw ShellWindows doesn't work on modal IE windows
I have a modal IE window that gets opened from another web page via
window.ShowModalDialog(). My usual routine (pasted below) works for
non-modal IE windows but fails to capture the modal window. Does
anyone know why? How can I get a handle to a modal IE window then?
Here is the code:
on error resume next
dim oShlWin as SHDocVw.ShellWindows
dim oBrowser as SHDocVw.InternetExplorer
Set oShlWin = New SHDocVw.ShellWindows
For Each oBrowser In shlWindows
msgbox oBrowser.locationURL 'gives loaded url
Next
thanks
Dexter