Customers Adobe Systems Inc. Chooses 'Convert Doc'. A custom site license has been signed by Adobe allowing them to install 'Convert Doc' on their servers. They will be using it specifically to do Doc to HTML conversions. "We look forward to using your product and potentially working together in the future", Bob Free, Adobe Great customer service, prompt attention to our requirements and lightening speed development has been my experience with the staff at Softinterface Inc. Within a few hours of installing... Bruce King, IBM Canada, Toronto, Ontario You need to convert from XLSX to CSV (Unicode/ASCII/ANSI) XLSX to Fixed Width Text (Unicode/ASCII/ANSI) XLSM to CSV (Unicode/ASCII/ANSI) XLSM to Fixed Width Text (Unicode/ASCII/ANSI) XLS to CSV (Unicode/ASCII/ANSI) XLS to Fixed Width Text (Unicode/ASCII/ANSI) CSV to Fixed Width Text (ASCII/ANSI/Unicode) |
For details on how to specifically convert from XLSM to CSV please continue reading below. See the bottom of this page for some examples showing how to convert XLSM To CSV from the command line.
First we show what conversions are possible with XLSM files, then we discuss specific directions for how to use the programs user interface. What Conversions Are Possible With XLSM
Below we show you exactly what you can convert Excel Macro-Enabled Workbook (XLSM) files to/from when using ‘Convert XLS’:
Convert XLSM To CSV Files From the User InterfaceConverting From XLSM file to a CSV File 1. Select the ‘Convert Files’ Action To Do 2. Select the input file path. For a whole folder be certain to use the *.ext format. For example if you want to convert the folder of XLSM files located in “C:\input folder\” then use “C:\input folder\*.XLSM”. Choose either ‘Convert XLS’ or ‘MS Excel’ conversion method. The ‘Convert XLS’ conversion method can be 10-20 times faster than the ‘MS Excel’ conversion method. The ‘MS Excel’ conversion method however, can convert any file MS Excel can open. Specify the Original File Format. In this case it is “[52] Excel Macro-Enabled Workbook (*.XLSM)”. Click on the Options button and choose the sheets, ranges and whether to include values or 'formulas and values' to convert. Also within the Options button select the “CSV, TSV…” tab to choose what character you are using to distinguish each piece of data within each record for your output CSV file. By default the comma is used. 3. Now specify the Target (output) file path. If you are doing a whole folder, then specify the whole folder using the “*.ext” format (for example "c:\output\*.CSV"). Finally, specify the ‘Convert To File Format” target (output) file type. In this case it may be one of two choices, “[6] Character Separated (*.CSV)” or “[23] Character Separated Unicode (*.csv)”. Note that you will have more choices available if you choose the ‘MS Excel’ conversion method. 4. Click the CONVERT button on the tool bar to start converting. Converting To XLSM file from a CSV file 1. Select the ‘Convert Files’ Action To Do 2. Select the input file path. For a whole folder be certain to use the *.ext format. For example if you want to convert the folder of csv files located in “C:\input folder\” then use “C:\input folder\*.ext” where ext is the extension used for the files. Typically, *.ext will be *.csv but not always. Choose either ‘Convert XLS’ or ‘MS Excel’ conversion method. The ‘Convert XLS’ conversion method can be 10-20 times faster than the ‘MS Excel’ conversion method. The ‘MS Excel’ conversion method however, can convert any file MS Excel can open. If you are using the ‘Convert XLS’ conversion method, specify the Original File Format. In this case it may be one of three choices, “[6] Character Separated (*.CSV)”, “[23] Character Separated Unicode (*.csv)” or “[25] Character Separated UTF-8 (*.csv)”. Are you using something other than a 'comma delimited csv file'? If so click on the OPTIONS button and then the “CSV, TSV…” tab to choose what character you are using to distinguish each piece of data within each record. 3. Now specify the Target (output) file path. If you are doing a whole folder, then specify the whole folder using the “*.ext” format (for example "c:\output\*.XLSM"). Finally, specify the ‘Convert To File Format” target (output) file type. In this case it is “[52] Excel Macro-Enabled Workbook (*.XLSM)”. Note that you will have more choices available if you choose the ‘MS Excel’ conversion method. 4. Click the CONVERT button on the tool bar to start converting.
NOTE: 'Convert XLS' can be used simply with the graphical user interface (GUI). If you've never heard of 'Command Line' before, we would recommend not reading this section and instead download and try the software. This is just a sample from the documentation. If you have trouble running these examples please see Helpful Hints For Creating a Command Line within the documentation.
The first example shows how to convert a single worksheet within a XLSM (Open XML Excel Workbook) file to the most popular form of a file, a comma delimited file as well as a Tab Delimited File (TSV). It can be easily modified to convert from an Excel file to any character delimited CSV file. Also in the first example we’ll show how to specify a specific range of cells within a sheet(s) to convert.The second example shows how to convert multiple sheets within a single Excel file. Creating a single and multi-file output is illustrated. The third and final example shows how to convert one or more sheets within many XLSM files within a folder (and subfolders). Each switch shown in blue is described in detail below the examples. It is highly recommended you review each switches description before implementing the example, thereby giving you the full power of ‘Convert XLS’. Example 1 (Single Sheet Conversion) To convert a single XLSM file, C:\in\B.XLSM (Sheet named "LastSheet") to a comma delimited CSV file, C:\out\B.CSV using MS Excel conversion method, the following syntax would be used:
ConvertXLS.EXE /S"C:\in\B.XLSM" /F52 /N"LastSheet" /T"C:\out\B.CSV" /C6 /M1 /V
To do the same using the 'Convert XLS' conversion method (extremely fast and MS Excel not required) simply change the /M1 switch to /M2 as shown below:
ConvertXLS.EXE /S"C:\in\B.XLSM" /F52 /N"LastSheet" /T"C:\out\B.CSV" /C6 /M2 /V
If you want a tab (N switch: 9) delimited file instead of a comma delimited file simply adjust the /
ConvertXLS.EXE /S"C:\in\B.XLSM" /F52 /N"LastSheet^^9" /T"C:\out\B.CSV" /C6 /M2 /V
Change the 9 (tab character) in the example above to any character you want. Look at the for numeric character equivalents.VERY IMPORTANT NOTE: Choosing the delimitation character is only possible when using the ‘Convert XLS’ (/M2) conversion method. Building on the last example, say you want to specify a range, say A1:B10 within a sheet to convert. No problem, simply modify the /N switch as shown below: ConvertXLS.EXE /S"C:\in\B.XLSM" /F52 /N"LastSheet^A1:B10^9" /T"C:\out\B.CSV" /C6 /M2 /V
Specifying ranges can be very powerful. For example if you want to only extract column N you can use “N:N” for the range.
Example 2 (Multiple Sheet Conversion) In example 1 we saw how the /N switch is used to specify the sheet/range to convert and what delimitation character to use in the character separated CSV file. Here we build upon that and show how to specify more than one sheet to convert. To convert a single XLSM file, C:\in\B.XLSM (Sheets named "LastSheet","FirstSheet", and "MidSheet") to one CSV file, C:\Out\B.CSV, the following syntax would be used:
ConvertXLS.EXE /S"C:\in\B.XLSM" /F52 /N"FirstSheet,LastSheet,MidSheet" /T"C:\Out\B.CSV" /C6 /M2 /V
After completion of this example the following file will be created containing all the data of the 3 sheets specified: C:\Out\B.CSV
To create several output files you can add the /U switch like so: ConvertXLS.EXE /S"C:\in\B.XLSM" /F52 /N"FirstSheet,LastSheet,MidSheet" /T"C:\Out\B.CSV" /C6 /M2 /U /V
After completion the output would be several files: C:\Out\B-FirstSheet.CSV C:\Out\B-MidSheet.CSV C:\Out\B-LastSheet.CSV
VERY IMPORTANT NOTE: The /U switch is only applicable to the ‘Convert XLS’ (/M2) conversion method. Using the ‘MS Excel’ (/M1) Conversion method always produces a multi-file output. If FirstSheet, MidSheet, and LastSheet were indexed 1,2 and 4 respectively, the same results can be attained by setting /N To /N"1-2,4".
Example 3 (Multiple File/Folder Conversion) Say you wanted to convert the 2nd sheet (/N"2") regardless of what the sheet name might be, of all the XLSM files within the “C:\in\” folder and subfolders (/R for recursive subfolders). To do this the syntax would be:
ConvertXLS.EXE /S"C:\in\*.XLSM" /F52 /N"2" /T"C:\out\*.CSV" /C6 /M2 /R /V
The example above can be modified to have the resulting files placed in the same folder as the original files. By specifying the /G switch and removing the /T switch as shown below:
ConvertXLS.EXE /S"C:\in\*.XLSM" /F52 /N"2" /G /C6 /M2 /R /V
In the last two examples, you can also use the /M1 switch to specify the ‘MS Excel’ conversion method.
Sheet: Only used when an Excel file is the original file. Use "*" or "" for all sheets. You can use names of sheets, or the numeric index. If using numeric indices, you can specify ranges of sheets (i.e. "1,4,10-20" and "4-10,9" etc.). Range and DelimChar are optional. Range: You could optionally specify a range, say if you only wanted to convert a portion of the input file. Use the same syntax as an Excel range (e.g. A1:B10). DelimChar: is for specifying the ASCII value of the delimitation character used in a CSV file. 44 for comma, 124 for Bar “|”, 9 for the tab etc. FixedWidth: Here you can specify how to import/export a fixed width text file. Not used in this example.
Note: It is highly encouraged that you use the Verbose (/V) switch initially to see what the status of your conversion is and to help you perfect your command line. When in verbose mode the program will tell you what went wrong or right with your command line using message boxes.
|
Copyright © 1999-2024 by SoftInterface, Inc. All Rights Reserved. Providing Software Interfaces to automate your business. |