Name
xlsx.Create -- create an empty XLSX document
Synopsis
[id] = xlsx.Create(id, filename$)
Function
This function will create an empty XLSX document containing a single worksheet named "Sheet1". Note that the XLSX document won't be saved to filename$ until you call either xlsx.Save() or xlsx.SaveAs() on it.

Inputs
id
identifier for the XLSX document or Nil for auto id selection
filename$
desired path and filename for the new document
Results
id
optional: identifier of the document; will only be returned when you pass Nil as argument 1 (see above)
Example
xlsx.Create(1, "test.xlsx")
For Local y = 1 To 100
   For Local x = 1 to 30
      xlsx.SetCellValue(1, x, y, "Cell " .. x .. "/" .. y)
   Next
Next
xlsx.Save(1)
xlsx.Close(1)
The code above will create a new XLSX document and add 30 columns and 100 rows to it. The document will be saved as test.xlsx.

Show TOC