Macro Scheduler 15

XLAddSheet

XLAddSheet>XLBookHandle,SheetName

 

Not supported in Macro Scheduler Lite.

 

This function requires Microsoft Excel to be installed.

 

Adds a worksheet to the workbook referenced by XLBookHandle.  The value in XLBookHandle is returned by a call to XLCreate or XLOpen which return a reference to a workbook.

 

Abbreviation: XAS

See also: XLCreate, XLDelCol, XLDelRow, XLDelSheet, XLFind, XLGet, XLGetCell, XLGetSheetDims, XLGetSelectedCell, XLGetSheetNames, XLOpen, XLQuit, XLRun, XLRunCode, XLSave, XLSelectRange, XLSetCell, XLSetCellColor, XLSetRangeFormat, XLSheetToArray

 

Example

 

XLCreate>%USERDOCUMENTS_DIR%\mybook.xls,1,xlBook

XLAddSheet>xlBook,Customers

XLSetCell>xlBook,Customers,1,1,CustID,xlRes

XLSave>xlBook,%USERDOCUMENTS_DIR%\mybook.xls

XLQuit>xlBook