I hope there's an easier way, but you could have the first action of the button set a variable, and then retrieve the value of the variable in the macro. Even it that works, though, I believe that tecnically it could fail, because on machines with parallel processors, I don't believe QlikView guarantees the order of execution of the actions.