>I am not getting good results yet with that as I never know what the window name will be. i.e. Microsoft Excel - XXXXX.xls, Microsoft Excel - XXXXX.xls {Compatibility Mode},XXXXX.xls - Microsoft Excel, etc.
>
>Is it possible to use this function with a wildcard in some way for the window name containing a part we know?
If oExcel is the reference to Excel.Application use oExcel.Caption to get the caption.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.