Usage
Function DataTable.ImportExcel(
String Path,
String SheetName [Optional],
Boolean OverwriteTable [Optional],
Boolean AddPrefixToColumnName [Optional]
)
ZAP Utility
ZAP.Da...ImportExcel
C:datatable.xls
sheet1
true
false
String Path
String SheetName
Boolean OverwriteTable
Boolean AddPrefixToColumnName
Parameters
Path
Type: String
Path of the Excel file
SheetName (optional)
Type: String
Default value: Empty String
Sheet name to import
OverwriteTable (optional)
Type: Boolean
Default value: true
If set to true, overwrites the existing datatable values
AddPrefixToColumnName (optional)
Type: String
Default value: false
Adds the filename prefix to the parameter name (Especially useful to prevent duplicate parameter names when OverwriteTable is set to false)
Returns
No return value
Example
VBScript
Datatable.ImportExcel "C:datatable.xls", "Sheet1", true, false
JavaScript
Datatable.ImportExcel("C:\datatable.xls", "Sheet1", true, false);
ZAP Utility
Zap.Da...ImportExcel
C:datatable.xls
Comment
Set sheet name, overwrite datatable values and add prefix to column name
ZAP Utility
Zap.Da...ImportExcel
C:datatable.xls
sheet1
true
true

Comment
Import datatable values from Excel file