ダメなコード
// セルの範囲を取得する
let range = sheet.getRange('K3:Q10');
// 並べ替える
range.sort([
{column:1, ascending:true},
{column:2, ascending:true},
{column:3, ascending:true},
{column:4, ascending:true},
]);
上手く行くコード
// セルの範囲を取得する
let range = sheet.getRange('K3:Q10');
// 並べ替える
range.sort([
{column:11, ascending:true},
{column:12, ascending:true},
{column:13, ascending:true},
{column:14, ascending:true},
]);
--


No comments:
Post a Comment