我可以使用此脚本自动调整我的数据,但我希望它从第2行开始,而不是自动调整我的第一行,这是我的标题。在此先感谢您的帮助!
function resizeColumn() {
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheetByName('MySheetName');
// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
sheet.autoResizeColumn(2);
sheet.autoResizeColumn(3);
sheet.autoResizeColumn(4);
sheet.autoResizeColumn(5);
sheet.autoResizeColumn(6);
sheet.autoResizeColumn(7);
sheet.autoResizeColumn(8);
sheet.autoResizeColumn(9);
sheet.autoResizeColumn(10);
sheet.autoResizeColumn(11);
}