1.While logged in world of warcraft press Esc then go to Macros Menu.


2.Click New and Pick a icon and macro name. 

3.Under macro commands box paste the following code and click "Save".

4.Put the macro on your toolbar and click it once to toggle it on and again to toggle it off, you will get a message on screen to tell you if the macro is on/off.