excel.duplicate
Description
Create a new Excel workbook based on an existing file.

Parameters
sourceFilename string

Return value
bookID number

Example
local xl = excel.duplicate("c:\\test.xls")
if xl < 1 then
    print("Error loading workbook")
else

    -- close the workbook
    excel.close(xl)
end if

Comments
Filename path is absolute.

See also
excel.load
excel.save
excel.close

Back
Generated on the 26 June 2024 at 22:01:28 (UK Time)