Excel.CloseBehavior enum
Specifies the close behavior for Workbook.close
.
Remarks
Examples
// Link to full sample: https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/excel/50-workbook/workbook-save-and-close.yaml
await Excel.run(async (context) => {
context.workbook.close(Excel.CloseBehavior.skipSave);
});
Fields
save = "Save" | Save the possible changes before closing the workbook. |
skipSave = "SkipSave" | Discard the possible changes when closing the workbook. |
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Office Add-ins