dim hwnd as long
I am using FindWindow function to find whether Internet Explorer is open or not .
hwnd = FindWindow(vbnullstring,"Google - Microsoft Internet Explorer")
the problem is it easily find most of the windows , but in few cases for example if i type something in google search and if i navigate to any of the resulting page then if i call the hwnd function its unable to find it .
My Question Is i cannot go on giving different string like
"Google - Microsoft Internet Explorer"
"search engine - Google Search - Microsoft Internet Explorer"
so is there a way to to give something which finds all opened IE whatever the toolbar text it has .