The previous steps save all the commands in the History pane. To save just a few lines from the History pane, highlight them, and copy and paste into a text editor, such as Notepad. Then, save the file using a .mtb file extension.
If you want to refresh the data in the same Minitab worksheet every time you run the Exec file, you need to edit the Exec file to specify the columns to use in the Minitab worksheet.
Columns 1 2 3 4 5.
To shorten sequential numbers,
use a colon, for example
Columns 1:5.
If you define constants with integer
values, you can enter lines like
Columns k1 k2 k3 k4 k5.
,
Columns k1:k5.
, or
Columns 1:k5.
ODBC;
Connect "DSN=MS Access Database;DBQ=Q:\Mug\Mugmacro.mdb;
DefaultDir=Q:\Mug;DriverId=25;FIL=MS Access;
MaxBufferSize=2048;PageTimeout=5;
SQLString "SELECT 'City', 'Country', 'FirstName', 'LastName' FROM 'Authors'";
Columns 1 2 3 4.