>No, it is logical. Your secondary window is modeless and oActiveX:End() method is therefore called immediatly. Duh, I was thinking it was a dialog. I need some sleep--I only had three hours last night... Hmm, then why doesn't the activeX object get closed when called ...