I have this same problem at work. The only solution I have found is to
send the keys for a copy command then past the results the compare the
results to some type of logic that will let you determine if a window
has popped up or changed. Also I do beleive there is a Windows API
routine for finding the active window, you might want to search for
that.
Keith
www.ktjfs.com
---
Message posted from
http://www.ExcelForum.com/