Window has not been activated with ACTIVATE WINDOW (Error 215)

An attempt was made to use a window, which has not been activated. For more information, see ACTIVATE WINDOW.