As mentioned above, a macro can be launched for execution from the Macros window, from the macro editor in debug mode, or automatically when any document event occurs. However, there is another way to run a macro. This can be done from a custom document dialog by assigning a macro launch function to a button control.
More details about Button control actions can be found in the Control Elements section.