Tools - Macro - Create Analysis/Graph Macro

Ribbon bar. Select the Tools tab. In the Tools group, click Macro and from the Create Analysis/Graph Macro submenu, you can select from a list of all current analyses/graphs that are open.

Classic menus. From the Tools - Macro submenu, select Create Analysis/Graph Macro to display a list of all current analyses/graphs that are open.

When you run an analytic procedure (from the Statistics tab/menu) or create a graph (from the Graphs tab/menu) the Visual Basic code corresponding to all design specifications as well as output options that you select are recorded. Select the appropriate analysis/graph to display that code. The New Macro dialog box will first be displayed in which you can type the macro's name and description.