Add or edit a macro for a control on a worksheet. Enable or disable macros in Office files. Enable or disable ActiveX settings in Office files. Create a Form button or a Command button and assign a macro that performs an action when a user clicks the button.