This is kind of the counterpart of what we discussed in "Cancel Just This Macro" in a Subroutine.
Follow along for the fun:
-
I have a macro (we'll call this Macro 1) which used to have a subroutine trigger, and used a "Return from Subroutine" action.
-
I removed the subroutine trigger, however I forgot to remove the "Return from Subroutine" action.
-
I changed all the calling macros to call Macro 1 using the "Execute Macro" action.
-
Everything worked fine up to this point.
-
Then, I had an existing macro (which we'll call Macro 2) with a subroutine trigger. I added an "Execute Macro" action to call Macro 1
-
When Macro 1 called its "Return from Subroutine" action, it caused Macro 2 to return!
By was this (not) fun to debug!