1 Write your macro using any text editor or word processor.
2 Save the updated global macro file in text-only format, with a file name and the file extension MAC, to the Macros subfolder of your main Minitab folder.
1 Execute a series of commands using either menu commands or session commands.
2 Click on the History folder in the Project manager. This folder displays the most recent commands (just commands, not output) executed in your session.
3 Highlight the commands you want to include in your macro, right click on them and choose Copy.
4 Open any word processing application and choose Edit > Paste.
5 Change any commands if you wish. Then insert three lines to include GMACRO, the template and ENDMACRO.
6 Save the updated global macro file in text-only format, with a file name and the file extension MAC, to the Macros subfolder of your main Minitab folder.
Here is a simple example of a macro file named ANALYZE.MAC. Indenting is not necessary, but may be done to improve readability as illustrated here.
GMACRO |
|
Marks the beginning of the global macro. |
Analyze |
|
The template, or the name, of this macro. |
NAME C1 "Yield" C2 "Chem1" & C3 "Chem2" C5 "Ln.Yield" PRINT C1-C3 DESCRIBE C1-C3 LET C5 = LOGE('Yield') REGRESS C5 2 C1 C2 |
|
Body of the macro. |
ENDMACRO |
|
Marks the end of the macro. |