Talent Macro

Is there a Macro where i can switch between single target and aoe with 1 button instead of preesing talents and then which one i want