| 2.7.48 impMNTB
 Menu InformationData: Import from File: Minitab (MTW, MPJ)
 If you do not see this file type, choose Data: Import from File: Add/Remove File Types...
  
 Brief InformationImport Minitab  (MTW) or project (MPJ) files prior to Minitab 13
 Command Line Usage
1. impMNTB; 
 2. impMNTB fname:="horse.mtw";
 3. impMNTB fname:="testp.mpj";
 4. impMNTB fname:=" horse.mtw" orng:=Col(1);
 
 X-Function Execution OptionsPlease refer to the page for additional option switches when accessing the x-function from script
 Variables
| Display Name
 | Variable Name
 | I/O and
 Type
 | Default Value
 | Description |  
| File Name | fname | Input
 string
 | fname$ | The file(s) to be imported. Click the browse button beside the list box to open one or more files. Then the file names will be listed in the box.
 |  
| File Info | trFiles | Input
 TreeNode
 | <unassigned> | This is used in the dialog for displaying the basic information of the file. Only the size of the data file will be displayed.
See more details in Description table
 |  
| Import Options | options | Input
 TreeNode
 | <unassigned> | This is the TreeNode for the import filter, which is hidden from the GUI. Users are not advised to use this variable.
See more details in Description table
 |  
| Output | orng | Output
 Range
 | <active> | The range for where the data should be imported into.
See the syntax here.
 |  
| Header Info | finfo | Output
 TreeNode
 | <optional> | This is for outputting the header information, which is hidden from the GUI. Users are not advised to use this variable.
See more details in Description table
 
 |  DescriptionThis X-Function is capable of importing Minitab file (MTW) or project (MPJ). It supports the version prior to Minitab 13.
 Details on Some Dialog Options
 
Please see this page for more details.
 ExamplesThe following example imports a Minitab data from the dialog:
a. From the Origin menu, select Data: Import from File: Minitab (MTW, MPJ) or type impMNTB -d. This will open the Open File dialog for you to choose the import file.b. Browse to the folder where your data file is. Select the file and click the Add File(s) button. Click OK to close the dialog box.c. In the impMNTB dialog box, use the range selector to select the range for data imported into. Click Ok to close the dialog.
The following script command imports a Minitab file (C:\Sample.MTW) without opening the dialog:
 
#:fname$="c:\Sample.MTW";
#:impMNTB; 
 The following example will use script to import all Minitab files under a specific folder (assume it is C:\MinitabData\).
 
#:cd C:\MinitabData;
#:findFiles ext:="*.MTW";
#:impMNTB; 
 Related X-Functionscd, impinfo, findFiles, impFile
 |