Office Javascript API の Office 2013 バージョンでは、次のようにテーブルを作成します。
Office.context.document.setSelectedDataAsync(
tbl, {
coercianType: Office.CoercionType.Table,
cellFormat: tableCellFormats,
tableOptions: { filterButton: false }
});
範囲をテーブルに変換する新しい方法で、1 つ足りないことがあります。つまり、フィルターボタンをオフにして作成するにはどうすればよいですか。filterbutton = false を設定できる Table.options プロパティが表示されません。(以下のスニペットを参照):
Excel.run(function (ctx) {
ctx.workbook.tables.add('Sheet1!A1:E7', true);
return ctx.sync();
}).catch(function (error) {
console.log(error);
});
誰かがこれを行う方法についてjavascriptスニペットを投稿できますか?