Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
restricting macro to a single program
#1
Can someone tell me how to restrict a macro to only one program, for example, Excel only? I'm new to QuickMacros and have looked but can't find instructions. Thanks in advance.
#2
put this at the top of your macro code. it checks to see if Excel is active, if not, it ends.

Macro Macro
Code:
Copy      Help
ifa- win("Microsoft Excel - " "XLMAIN")
,end
An old blog on QM coding and automation.

The Macro Hook
#3
Thanks. It worked! Appreciate it.


Forum Jump:


Users browsing this thread: 1 Guest(s)