Xbasic
a5_analyzeExcelFile Function
Syntax
dim result as p = a5_analyzeExcelFile(filename as c [, samplesize as N]);
Arguments
- filenameCharacter
The Excel file to analyze.
- samplesizeNumeric
Default = 0. The number of records to sample in the sheet. By default, all records are loaded.
Description
Gets information about an Excel file.
Discussion
The a5_analyzeExcelFile() function can be used to return the number of sheets in an Excel file
Example
dim fn as c = "C:\excelfiles\myExcelDoc.xlsx"; ?a5_analayzeExcelFile(fn).sheetnames = people companies products