Customize a view by creating a user interface macro

With interface macros you can perform actions such as opening another view, applying a filter, or creating a new record. There are two kinds: “embedded” UI macros, which attach directly to user interface objects such as command buttons, combo boxes, or the Action Bar button object, and “standalone” UI macros, contained in macro objects.

To avoid duplicating code, reuse standalone UI macros by calling them from other macros. You can see the standalone UI macros in the Navigation Pane, under Macros, but you can’t run them directly from there. Use the RunMacro action to run a standalone UI macro from an embedded UI macro.

Create an embedded UI macro

Embedded UI macros run when specific events occur in a view, such as clicking a button, selecting an item in a combo box, or loading a view. The macros become part of the view or control they’re embedded in.

Here are the events you can attach a UI macro to in a control or view:

Event Type

When it occurs

After Update

Occurs after you type data into a control or select an item in a list control.