Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
cannot activate window
#2
Actually Excel displays Book1 and Book2 in the same window. When Book2 is displayed, it creates another window with name Book1. That window is not visible but shows a button in the taskbar. When act tries to activate it, Excel instead displays Book1 in the main window, and the invisible window remains inactive. QM waits for a while and generates error. Use this instead:

Code:
Copy      Help
AllowActivateWindows
SetForegroundWindow(win("Book1"))


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)