Skip to main content

Write to open workbook

Write a value, a list of rows or a Data Table into a sheet of a workbook that is open in Excel, starting at a cell; the person sees it appear. Saving is a separate step.

Command in the Open Office files toolkit · id ooa.office_attach/excel_write_range · 6 inputs (2 required), 1 output

Inputs​

InputTypeRequiredDefaultWhat it is
WorkbookStringYesName of the open workbook (Sales.xlsx) or its full path.
SheetStringNoSheet name; the sheet shown in Excel when empty.
Start cellStringNoA1Top-left cell to write to.
ValuesAnyYesOne value, a list of rows (each a list of values) or a Data Table.
Include headerBooleanNotrueFor a Data Table: write its column names as the first row.
Timeout (seconds)NumberNo60Maximum time in seconds.

Outputs​

OutputTypeWhat it is
rangeStringAddress of the cells written, e.g. B2:E10.