Skip to main content

Create workbook

Create a new empty .xlsx file on disk with one named sheet and open it as a session; optionally with a password to open, a password to edit and a sensitivity label.

Command in the Excel toolkit · id ooa.excel/create_workbook · 10 inputs (1 required), no outputs

Inputs​

InputTypeRequiredDefaultWhat it is
PathFileYesPath of the new workbook.
SheetStringNoSheet1Name of the first worksheet.
OverwriteBooleanNofalseReplace a file that already exists at the path.
SessionStringNoexcelSession name used by later steps.
PasswordCredentialNoEncrypt the file with this password; later saves keep it encrypted.
Edit passwordCredentialNoPassword to modify: Excel asks for it, or offers to open the file read-only.
Sensitivity labelStringNoSensitivity label id (a GUID) to put on the workbook; it may come from the vault.
Label site IDStringNoMicrosoft 365 tenant id (a GUID) the label belongs to.
Continue if label failsBooleanNofalseWhen the label cannot be set, log a warning and go on instead of stopping.
ShareBooleanNofalseAgents this one runs may use it.