Book Image

Minitab Cookbook

By : Isaac A Newton
Book Image

Minitab Cookbook

By: Isaac A Newton

Overview of this book

Table of Contents (19 chapters)
Minitab Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Obtaining input from the session window with a Global macro


In the previous recipe, the macro used a fixed specification limit of 12.5. Here, we will add commands to ask for the specification and then group the points on the time series plot. This grouping is used to color points based on whether they are inside or outside the specification.

Allowing input from the session window can be helpful when running a macro. This can be a great way to add some flexibility to the macro. This uses the Set command to ask for input from the session window.

Note

We can only use the Set command to read from the session window if commands are enabled. If the MTB> is not showing in the session window, re-enable this by going to the Editor menu and selecting Enable Commands.

Getting ready

We will need to open the macro from the previous recipe or the catch-up macro, Glayout.mac. Open this file in Notepad. Next, open the Macro Data.MTW worksheet.

How to do it…

The following steps will add a command to ask for...