Macro's are not tied to a particular device, they operate in all modes, so if you placed the power macro on the power button, then when you hit the power button in any device mode it will operate the power macro.
To clear out the macro and any other programming that you might have done trying to fix it, use the 980 reset command.
Then I would suggest either putting the macro on one of the four smart keys or maybe on shift/POWER
Check out my site for lots more info and tips.
Rob.
http://www.hifi-remote.com