Chcem presunúť hárok v rámci spreadsheet pomocou skriptu aplikácií. Ako to spraviť?
Najlepšie naživo!
odpovede:
8 pre odpoveď č. 1Pozrel si sa na to dokumentáciu ?
Uvádza to aj príklad:
// This example assumes there are two sheets in the current
// active spreadsheet: one named "first", and another named "second",
// and that the current active sheet (first) is in position 1
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
var sheet = spreadsheet.getSheetByName("first");
// This should output "Current index of sheet: 1"
Logger.log("Current index of sheet: %s", sheet.getIndex());
spreadsheet.moveActiveSheet(2);
// This should output "New index of sheet: 2"
Logger.log("New index of sheet: %s", sheet.getIndex());