mw.hlp (Topic list)
30781
THE ACTIVE WINDOW CANNOT BE CHANGED AT THIS TIME.
 
The macro you are running attempted to change a
window setting from within a dialog box. You
cannot change an active window.
 
■ Check the macro instructions and make sure the
  macro closes the dialog box before carrying out
  the Window command.