次の方法で共有


ExcelScript.PrintComments enum

注釈

/**
 * 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);
  });
}

フィールド

endSheet

コメントは、ワークシートの末尾に印刷されます。

inPlace

コメントは、ワークシートの挿入された位置に印刷されます。

noComments

コメントは印刷されません。