The repeating section is a button, click it to print the attack into chat. Then click in the chat area to type something, and click the UP arrow on your keyboard. That should show the last message sent to chat - the attack - which you can then copy into a macro.