Depending on when you want the macro to fire, you can put it in various events under the Properties page of the form/control you want to link it to. Click on the Event tab of the Properties page, and there should be pulldown menus with your Macros. You can use this same page to code or create expressions (good to know since Macros are apparently being phased out).