var a=new Array(); function sample() { id="1c6ki9e0-5QRST-uNRNxazyLaYzUyecQtCxqmQ0ldgaI"; var ex1 = SpreadsheetApp.openById(id); var sheet = ex1.getSheetByName("data"); for(s=1;s<11;s++){ sheet.setRowHeight(s, 100); } for(s=1;s<11;s++){ sheet.setColumnWidth(s, 100); } for(s=1;s<22;s++){ a[s]="社長"; } a[1]="社長"; a[2]="副社"; a[3]="専務"; str="abc"; for(s=1;s<22;s++){ sheet.getRange(s, 1).setValue(a[s]); } }