>What version of Excel? Hwnd is on Excel2002. I don't have any other version of Excel installed that I can check.
Thanks for the followup - I still use 97 - that explains it.
What I did was: WHen the situation required a messagebox, I minimized the VFP form (WindowsState), and then "normalized" when Excel was closed.
Imagination is more important than knowledge