excel.getWorksheetIndex
Get an Excel worksheet index by title.
bookID number
sheetTitle string
index number
local xl = excel.load("c:\\test.xls")
if xl < 1 then
print("Error loading workbook")
else
local index = excel.getWorksheetIndex(xl, "Sheet1")
print("Index: " .. index)
excel.close(xl)
end if
Result index is zero based.
Generated on the 26 June 2024 at 22:01:28 (UK Time)