Add a shortcut to a menu or toolbar to run a Minitab macro or Exec file

If you frequently use a Minitab macro or Exec file—for example, to update data from a database—you can add a button to a menu or toolbar to run the macro or Exec file.

  1. Choose Tools > Customize.
  2. On the Tools tab, click the New (Insert) button .
  3. Type a name for the command (for example, Get My Data), then press the Enter key.
  4. Click the Open button .
  5. From the file type drop-down list, select All (*.*).
  6. Browse to and select the macro or the Exec file (for example, GetMyData.mtb).
  7. If the macro requires user's input when it is run, specify the arguments that are required by the macro by entering columns, constants, or matrices after Arguments.

    You can specify only one set of arguments. If you want the macro to run with a different set of arguments, you must either modify the arguments for the shortcut or create a different shortcut with the other arguments.

    For example, suppose you run a macro one time, and specify the 95th percentile as an argument (for example, C1 95 C10). Then, you run the macro again, and specify the 90th percentile (for example, C1 90 C11). Instead, you could create one shortcut named 95th Percentile using 95 as an argument, and another shortcut named 90th percentile using 90 as an argument.

  8. Click Close. You can run the macro at any time by choosing it from the Tools menu. For example, choose Tools > Get My Data.
  9. To add the new command to a different menu or to a toolbar, do the following:
    1. Choose Tools > Customize.
    2. On the Commands tab, under Categories, select Tools.
    3. Drag the new command (for example, Get My Data) to where you want it on the Minitab menu or toolbar.
  10. To edit the button display, with the Customize dialog box open, right-click the button, then choose an editing option.
  11. Click Close.
By using this site you agree to the use of cookies for analytics and personalized content.  Read our policy