Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
ExcelScript.PrintComments enum
- Package:
- ExcelScript
Remarks
Used by
Examples
/**
* This script makes the comments print at the end of the worksheet
* when the workbook is printed.
*/
function main(workbook: ExcelScript.Workbook) {
// Access every worksheet in the workbook.
workbook.getWorksheets().forEach(worksheet => {
// Get the page layout for each sheet.
const layout = worksheet.getPageLayout();
// Change the comment printing settings to print them at the end of the sheet.
layout.setPrintComments(ExcelScript.PrintComments.endSheet);
});
}
Fields
| endSheet | Comments will be printed as end notes at the end of the worksheet. |
| inPlace | Comments will be printed where they were inserted in the worksheet. |
| noComments | Comments will not be printed. |
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 Scripts
Feedback
Was this page helpful?
