You can't put the macro in the button command, you'd need to make the macro first, and then use the button command to refer to it. On a sheet you have access to make a new ability under the Attributes and Abilities tab, give it a name like Button1, then add your macro in the box. For the button, make it [Button1](~<sheet name>|Button1) and that will refer to the macro on that sheet and run it when you hit the button.