Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Excel.SaveBehavior enum

Package:
excel

Specifies the save behavior for Workbook.save.

Remarks

API set: ExcelApi 1.9

Used by

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.save(Excel.SaveBehavior.prompt);
});

Fields

prompt = "Prompt"

Prompts the "Save As" experience to the user if the workbook has not been saved, Ignored if the workbook was previously saved.

save = "Save"

Save the workbook without prompting the user. If file is not saved, it will save it with default name in the default location.


Feedback

Was this page helpful?