Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
cannot activate window
#1
Hi, Im new at QM:

I can't activate a window with the act win command, but i can, when the program have the control of the window, don't know if explain myself.
i have this code:

ifi win("Microsoft Excel - BOOK1")
act win("Microsoft Excel - BOOK1")
else
act win("BOOK1")

The BOOK1 obviusly exists, and, when Excel controls it, it works properly and activates the BOOK1, but, when Excel has control of another book but BOOK1 still exists, it can't activate the BOOK1 and gets this error:

Error (RT) in Macro2: cannot activate window

I guess this is easy cake for the programmers around here, so please tell me what to do to fix this thing.

Lots of thx in advance


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)