Google sheet dapatkan indeks sel saat ini

Access and modify Google Sheets files. Common operations are adding new sheets and adding collaborators

Show

Methods

MethodReturn typeBrief description
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
02
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03Adds developer metadata with the specified key to the top-level spreadsheet.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
04
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03Adds developer metadata with the specified key and visibility to the spreadsheet.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
06
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03Adds developer metadata with the specified key and value to the spreadsheet.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
08
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03Adds developer metadata with the specified key, value, and visibility to the spreadsheet.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
10
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03Adds the given user to the list of editors for the
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
13
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03Adds the given user to the list of editors for the
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
16
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03Menambahkan susunan pengguna tertentu ke daftar editor untuk
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
19
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
20Creates a new menu in the Spreadsheet UI.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
21
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03Adds the given user to the list of viewers for the
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
24
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03Adds the given user to the list of viewers for the
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
27
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03Adds the given array of users to the list of viewers for the
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
30
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
31Appends a row to the bottom of the current data region in the sheet.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
32
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
31Sets the width of the given column to fit its contents.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
34
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03Copies the spreadsheet and returns the new one.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
36
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
37Returns a
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
37 for finding developer metadata within the scope of this spreadsheet.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
39
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
40Creates a text finder for the spreadsheet, which can be used to find and replace text within the spreadsheet.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
41
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
31Deletes the currently active sheet.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
43
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
31Deletes the column at the given column position.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
45
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
20Deletes a number of columns starting at the given column position.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
47
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
31Deletes the row at the given row position.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
49
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
20Deletes a number of rows starting at the given row position.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
51
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
20Deletes the specified sheet.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
53
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
31Menggandakan lembar aktif dan menjadikannya lembar aktif.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
55
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
56Returns the active cell in this sheet.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
57
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
56Returns the selected range in the active sheet, or
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
59 if there is no active range.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
60
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
61Returns the list of active ranges in the active sheet or
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
59 if there are no active ranges.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
63
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
31Mendapatkan lembar aktif dalam spreadsheet.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
65
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
66Return the data inside this object as a blob converted to the specified content type.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
67
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
68Mengembalikan semua banding di spreadsheet ini.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
69
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
66Mengembalikan data di dalam objek ini sebagai blob.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
71
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
72Mendapatkan lebar dalam piksel dari kolom yang diberikan.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
73
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
56Mengembalikan sel saat ini di lembar aktif atau
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
59 jika tidak ada sel saat ini.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
76
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
56Mengembalikan
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
56 sesuai dengan dimensi tempat data berada.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
79
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
80Mendapatkan semua rumus sumber data.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
81
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
82Mendapatkan semua tabel pivot sumber data.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
83
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
84Mendapatkan jadwal penyegaran spreadsheet ini.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
85
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
86Mengembalikan semua lembar sumber data di spreadsheet.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
87
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
88Mendapatkan semua tabel sumber data.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
89
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
90Mengembalikan semua sumber data dalam spreadsheet.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
91
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
92Dapatkan metadata pengembang yang terkait dengan spreadsheet tingkat atas.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_93
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
94Mendapatkan daftar editor untuk ini
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
96
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
97Mengembalikan URL untuk formulir yang mengirimkan responsnya ke spreadsheet ini, atau
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
59 jika spreadsheet ini tidak memiliki formulir terkait.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
99
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
72 Mengembalikan jumlah kolom yang dibekukan.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
01
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
72Mengembalikan jumlah baris beku.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
03
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
97Mendapatkan pengidentifikasi unik untuk spreadsheet ini.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
05
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
06Mengembalikan semua gambar over-the-grid pada lembar.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
07
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
08Mengembalikan nilai ambang yang digunakan selama perhitungan berulang.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
09
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
72Mengembalikan posisi kolom terakhir yang memiliki konten.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
11
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
72Mengembalikan posisi baris terakhir yang memiliki konten.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
13
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
72Mengembalikan jumlah maksimum iterasi untuk digunakan selama perhitungan iteratif.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
15
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
97Mendapatkan nama dokumen.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
17
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
18Mendapatkan semua rentang bernama dalam spreadsheet ini.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
19
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
72Mengembalikan jumlah lembar dalam spreadsheet ini.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
21
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
22Mengembalikan pemilik dokumen, atau
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
59 untuk dokumen di drive bersama.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
24
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
25Mengembalikan daftar tema yang telah ditentukan.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
26
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
27Mendapatkan array objek yang mewakili semua rentang atau lembar yang dilindungi dalam spreadsheet.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
28
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
56Mengembalikan rentang seperti yang ditentukan dalam notasi A1 atau notasi R1C1.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
30
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
56Mengembalikan rentang bernama, atau
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
59 jika tidak ada rentang dengan nama yang diberikan ditemukan.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
33
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
61Mengembalikan koleksi
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
61 yang mewakili rentang dalam lembar yang sama yang ditentukan oleh daftar notasi A1 atau notasi R1C1 yang tidak kosong.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
36
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
37Mengembalikan interval perhitungan untuk spreadsheet ini.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
38
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
72Mendapatkan tinggi dalam piksel dari baris yang diberikan.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
40
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
41Mengembalikan
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
41 saat ini dalam spreadsheet.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
43
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
31Mengembalikan lembar dengan nama yang diberikan.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
45
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
72Mengembalikan ID lembar yang diwakili oleh objek ini.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
47
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
97Mengembalikan nama sheet.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
49
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
50Mengembalikan kisi persegi panjang nilai untuk rentang ini mulai dari koordinat yang diberikan.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
51
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
52Mendapatkan semua sheet di spreadsheet ini.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
53
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
97Mendapatkan lokal spreadsheet.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
55
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
56 Mengembalikan tema spreadsheet saat ini, atau
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
59 jika tidak ada tema yang diterapkan.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
58
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
97Mendapatkan zona waktu untuk spreadsheet.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
60
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
97Mengembalikan URL untuk spreadsheet yang diberikan.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
62
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
94Mendapatkan daftar pemirsa dan pemberi komentar untuk ini
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
65
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
20Menyembunyikan kolom atau kolom dalam rentang yang diberikan.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
67
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
20Menyembunyikan baris dalam rentang yang diberikan.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
69
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
31Menyisipkan kolom setelah posisi kolom yang diberikan. ________99______71
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
31Menyisipkan kolom sebelum posisi kolom yang diberikan.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
73
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
31Menyisipkan sejumlah kolom setelah posisi kolom yang diberikan.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
75
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
31Menyisipkan sejumlah kolom sebelum posisi kolom yang diberikan.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
77
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
78Memasukkan
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
78 baru dalam spreadsheet dan memulai eksekusi data. ________99______80
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
81Menyisipkan
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03 sebagai gambar dalam dokumen pada baris dan kolom tertentu. ________99______83
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
81Menyisipkan
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03 sebagai gambar dalam dokumen pada baris dan kolom tertentu, dengan offset piksel. ________99______86
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
81Menyisipkan gambar dalam dokumen pada baris dan kolom tertentu.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
88
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
81Menyisipkan gambar dalam dokumen pada baris dan kolom tertentu, dengan offset piksel. ________99______90
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
31Menyisipkan baris setelah posisi baris yang diberikan.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
_92
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
31Menyisipkan baris sebelum posisi baris yang diberikan.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
_94
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
31Menyisipkan sejumlah baris setelah posisi baris yang diberikan.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
_96
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
31Menyisipkan sejumlah baris sebelum posisi baris yang diberikan.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
98
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
31Memasukkan sheet baru ke dalam spreadsheet, menggunakan nama sheet default.
// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
00
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
31Memasukkan sheet baru ke dalam spreadsheet pada indeks yang diberikan.
// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
02
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
31Memasukkan lembar baru ke dalam spreadsheet pada indeks yang diberikan dan menggunakan argumen lanjutan opsional.
// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
04
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
31Memasukkan sheet baru ke dalam spreadsheet, menggunakan nama sheet default dan argumen lanjutan opsional.
// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
06
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
31Memasukkan sheet baru ke dalam spreadsheet dengan nama yang diberikan.
// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
08
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
31Memasukkan sheet baru ke dalam spreadsheet dengan nama yang diberikan pada indeks yang diberikan.
// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
10
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
31Memasukkan lembar baru ke dalam spreadsheet dengan nama yang diberikan pada indeks yang diberikan dan menggunakan argumen lanjutan opsional.
// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
12
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
31Memasukkan lembar baru ke dalam spreadsheet dengan nama yang diberikan dan menggunakan argumen lanjutan opsional.
// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
_14
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
31Menyisipkan sheet baru di spreadsheet, membuat
// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
16 yang mencakup seluruh sheet dengan spesifikasi sumber data yang diberikan, dan memulai eksekusi data.
// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
17
// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
18Mengembalikan apakah kolom tertentu disembunyikan oleh pengguna.
// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
19
// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
18Mengembalikan apakah penghitungan iteratif diaktifkan di spreadsheet ini.
// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
21
// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
18Mengembalikan apakah baris tertentu disembunyikan oleh filter (bukan tampilan filter).
// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
23
// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
18Mengembalikan apakah baris tertentu disembunyikan oleh pengguna.
// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
25
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
20Moves the active sheet to the given position in the list of sheets.
// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
27
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
31Creates a new
// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
29 sheet and moves the provided chart to it.
// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
30
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
20Refreshes all supported data sources and their linked data source objects, skipping invalid data source objects.
// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
32
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03Removes the given user from the list of editors for the
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03.
// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
35
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03Removes the given user from the list of editors for the
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03.
// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
38
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
20Removes a menu that was added by
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
19.
// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
41
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
20Deletes a named range with the given name.
// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
43
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03Removes the given user from the list of viewers and commenters for the
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03.
// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
46
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03Menghapus pengguna tertentu dari daftar pemirsa dan pemberi komentar untuk
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03.
// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
49
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
20Renames the document.
// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
51
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
20Mengganti nama lembar aktif saat ini menjadi nama baru yang diberikan.
// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
53
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
56Menghapus tema yang diterapkan dan menyetel tema default pada spreadsheet.
// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
55
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
56Menyetel rentang yang ditentukan sebagai
// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
57 di lembar aktif, dengan sel kiri atas dalam rentang sebagai
// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
58.
// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
59
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
61Menyetel daftar rentang yang ditentukan sebagai
// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
61 di lembar aktif.
// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
62
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
56Mengatur wilayah pilihan aktif untuk sheet ini.
// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
64
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
56Mengatur pemilihan aktif, sebagaimana ditentukan dalam notasi A1 atau notasi R1C1.
// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
66
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
31Mengatur sheet yang diberikan menjadi sheet aktif di spreadsheet.
// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
68
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
31Menyetel sheet yang diberikan menjadi sheet aktif di spreadsheet, dengan opsi untuk mengembalikan pilihan terbaru dalam sheet itu.
// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
70
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
31Mengatur lebar kolom yang diberikan dalam piksel.
// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
_72
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
56Mengatur sel yang ditentukan sebagai
// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
58.
// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
75
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
20Membekukan jumlah kolom yang diberikan.
// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
77
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
20Membekukan jumlah baris yang diberikan.
// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
79
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03Menetapkan nilai ambang minimum untuk perhitungan iteratif.
// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
_81
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03Menyetel apakah penghitungan berulang diaktifkan di spreadsheet ini.
// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
83
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03Menetapkan jumlah maksimum iterasi perhitungan yang harus dilakukan selama perhitungan berulang.
// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
85
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
20Names a range.
// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
_87
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03Menetapkan seberapa sering spreadsheet ini harus menghitung ulang.
// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
89
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
31Mengatur tinggi baris dari baris yang diberikan dalam piksel.
// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
_91
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
20Mengatur lokal spreadsheet. ________198
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_99_______56Menetapkan tema pada spreadsheet.
// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
_95
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
20Mengatur zona waktu untuk spreadsheet.
// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
_97
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
20Menampilkan komponen antarmuka pengguna khusus dalam dialog yang berpusat di viewport browser pengguna.
// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
_99
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
31Mengurutkan lembar demi kolom, naik.
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();

// Creates  a text finder.
var textFinder = spreadsheet.createTextFinder('dog');

// Returns the first occurrence of 'dog' in the spreadsheet.
var firstOccurrence = textFinder.findNext();

// Replaces the last found occurrence of 'dog' with 'cat' and returns the number
// of occurrences replaced.
var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
01
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
31Mengurutkan lembar demi kolom.
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();

// Creates  a text finder.
var textFinder = spreadsheet.createTextFinder('dog');

// Returns the first occurrence of 'dog' in the spreadsheet.
var firstOccurrence = textFinder.findNext();

// Replaces the last found occurrence of 'dog' with 'cat' and returns the number
// of occurrences replaced.
var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
03
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
20Menampilkan jendela popup di sudut kanan bawah spreadsheet dengan pesan yang diberikan.
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();

// Creates  a text finder.
var textFinder = spreadsheet.createTextFinder('dog');

// Returns the first occurrence of 'dog' in the spreadsheet.
var firstOccurrence = textFinder.findNext();

// Replaces the last found occurrence of 'dog' with 'cat' and returns the number
// of occurrences replaced.
var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
05
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
20Menampilkan jendela popup di sudut kanan bawah spreadsheet dengan pesan dan judul yang diberikan.
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();

// Creates  a text finder.
var textFinder = spreadsheet.createTextFinder('dog');

// Returns the first occurrence of 'dog' in the spreadsheet.
var firstOccurrence = textFinder.findNext();

// Replaces the last found occurrence of 'dog' with 'cat' and returns the number
// of occurrences replaced.
var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
07
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
20Menampilkan jendela popup di sudut kanan bawah spreadsheet dengan judul dan pesan yang diberikan, yang tetap terlihat untuk jangka waktu tertentu.
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();

// Creates  a text finder.
var textFinder = spreadsheet.createTextFinder('dog');

// Returns the first occurrence of 'dog' in the spreadsheet.
var firstOccurrence = textFinder.findNext();

// Replaces the last found occurrence of 'dog' with 'cat' and returns the number
// of occurrences replaced.
var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
09
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
20Menampilkan kolom dalam rentang tertentu.
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();

// Creates  a text finder.
var textFinder = spreadsheet.createTextFinder('dog');

// Returns the first occurrence of 'dog' in the spreadsheet.
var firstOccurrence = textFinder.findNext();

// Replaces the last found occurrence of 'dog' with 'cat' and returns the number
// of occurrences replaced.
var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
11
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
20Menampilkan baris dalam rentang tertentu.
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();

// Creates  a text finder.
var textFinder = spreadsheet.createTextFinder('dog');

// Returns the first occurrence of 'dog' in the spreadsheet.
var firstOccurrence = textFinder.findNext();

// Replaces the last found occurrence of 'dog' with 'cat' and returns the number
// of occurrences replaced.
var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
13
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
20 Memperbarui menu yang ditambahkan oleh
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
19.
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();

// Creates  a text finder.
var textFinder = spreadsheet.createTextFinder('dog');

// Returns the first occurrence of 'dog' in the spreadsheet.
var firstOccurrence = textFinder.findNext();

// Replaces the last found occurrence of 'dog' with 'cat' and returns the number
// of occurrences replaced.
var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
16
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
20Menunggu hingga semua eksekusi saat ini dalam spreadsheet selesai, waktu habis setelah jumlah detik yang disediakan

Metode yang tidak digunakan lagi

MethodReturn typeDeskripsi singkat
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();

// Creates  a text finder.
var textFinder = spreadsheet.createTextFinder('dog');

// Returns the first occurrence of 'dog' in the spreadsheet.
var firstOccurrence = textFinder.findNext();

// Replaces the last found occurrence of 'dog' with 'cat' and returns the number
// of occurrences replaced.
var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
18
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();

// Creates  a text finder.
var textFinder = spreadsheet.createTextFinder('dog');

// Returns the first occurrence of 'dog' in the spreadsheet.
var firstOccurrence = textFinder.findNext();

// Replaces the last found occurrence of 'dog' with 'cat' and returns the number
// of occurrences replaced.
var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
19Mengembalikan instance
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();

// Creates  a text finder.
var textFinder = spreadsheet.createTextFinder('dog');

// Returns the first occurrence of 'dog' in the spreadsheet.
var firstOccurrence = textFinder.findNext();

// Replaces the last found occurrence of 'dog' with 'cat' and returns the number
// of occurrences replaced.
var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
19 yang menjelaskan izin untuk sheet saat ini.
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();

// Creates  a text finder.
var textFinder = spreadsheet.createTextFinder('dog');

// Returns the first occurrence of 'dog' in the spreadsheet.
var firstOccurrence = textFinder.findNext();

// Replaces the last found occurrence of 'dog' with 'cat' and returns the number
// of occurrences replaced.
var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
21
// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
18Menunjukkan apakah dokumen mengizinkan tampilan anonim.
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();

// Creates  a text finder.
var textFinder = spreadsheet.createTextFinder('dog');

// Returns the first occurrence of 'dog' in the spreadsheet.
var firstOccurrence = textFinder.findNext();

// Replaces the last found occurrence of 'dog' with 'cat' and returns the number
// of occurrences replaced.
var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
23
// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
18Menunjukkan apakah dokumen mengizinkan pengeditan dari pengguna anonim.
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();

// Creates  a text finder.
var textFinder = spreadsheet.createTextFinder('dog');

// Returns the first occurrence of 'dog' in the spreadsheet.
var firstOccurrence = textFinder.findNext();

// Replaces the last found occurrence of 'dog' with 'cat' and returns the number
// of occurrences replaced.
var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
25
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
20Menetapkan kebijakan dokumen tentang membaca dan menulis secara anonim.
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();

// Creates  a text finder.
var textFinder = spreadsheet.createTextFinder('dog');

// Returns the first occurrence of 'dog' in the spreadsheet.
var firstOccurrence = textFinder.findNext();

// Replaces the last found occurrence of 'dog' with 'cat' and returns the number
// of occurrences replaced.
var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
27
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
20Mengatur izin untuk sheet saat ini

Dokumentasi terperinci

var spreadsheet = SpreadsheetApp.getActiveSpreadsheet(); // Creates a text finder. var textFinder = spreadsheet.createTextFinder('dog'); // Returns the first occurrence of 'dog' in the spreadsheet. var firstOccurrence = textFinder.findNext(); // Replaces the last found occurrence of 'dog' with 'cat' and returns the number // of occurrences replaced. var numOccurrencesReplaced = findOccurrence.replaceWith('cat');_29

Menambahkan metadata pengembang dengan kunci yang ditentukan ke spreadsheet tingkat atas

Parameter

NameTypeDescription
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();

// Creates  a text finder.
var textFinder = spreadsheet.createTextFinder('dog');

// Returns the first occurrence of 'dog' in the spreadsheet.
var firstOccurrence = textFinder.findNext();

// Replaces the last found occurrence of 'dog' with 'cat' and returns the number
// of occurrences replaced.
var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
30
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
97Kunci untuk metadata pengembang baru

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_03 — Spreadsheet ini, untuk chaining

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var spreadsheet = SpreadsheetApp.getActiveSpreadsheet(); // Creates a text finder. var textFinder = spreadsheet.createTextFinder('dog'); // Returns the first occurrence of 'dog' in the spreadsheet. var firstOccurrence = textFinder.findNext(); // Replaces the last found occurrence of 'dog' with 'cat' and returns the number // of occurrences replaced. var numOccurrencesReplaced = findOccurrence.replaceWith('cat');_35

Menambahkan metadata developer dengan kunci yang ditentukan dan visibilitas ke spreadsheet

Parameter

NameTypeDescription
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();

// Creates  a text finder.
var textFinder = spreadsheet.createTextFinder('dog');

// Returns the first occurrence of 'dog' in the spreadsheet.
var firstOccurrence = textFinder.findNext();

// Replaces the last found occurrence of 'dog' with 'cat' and returns the number
// of occurrences replaced.
var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
30
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
97Kunci untuk metadata pengembang baru. ________299
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_299_______39Visibilitas metadata pengembang baru

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_03 — Spreadsheet ini, untuk chaining

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var spreadsheet = SpreadsheetApp.getActiveSpreadsheet(); // Creates a text finder. var textFinder = spreadsheet.createTextFinder('dog'); // Returns the first occurrence of 'dog' in the spreadsheet. var firstOccurrence = textFinder.findNext(); // Replaces the last found occurrence of 'dog' with 'cat' and returns the number // of occurrences replaced. var numOccurrencesReplaced = findOccurrence.replaceWith('cat');_43

Menambahkan metadata developer dengan kunci dan nilai yang ditentukan ke spreadsheet

Parameter

NameTypeDescription
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();

// Creates  a text finder.
var textFinder = spreadsheet.createTextFinder('dog');

// Returns the first occurrence of 'dog' in the spreadsheet.
var firstOccurrence = textFinder.findNext();

// Replaces the last found occurrence of 'dog' with 'cat' and returns the number
// of occurrences replaced.
var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
30
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
97Kunci untuk metadata pengembang baru.
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();

// Creates  a text finder.
var textFinder = spreadsheet.createTextFinder('dog');

// Returns the first occurrence of 'dog' in the spreadsheet.
var firstOccurrence = textFinder.findNext();

// Replaces the last found occurrence of 'dog' with 'cat' and returns the number
// of occurrences replaced.
var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
_46
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
97Nilai untuk metadata pengembang baru

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_03 — Spreadsheet ini, untuk chaining

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var spreadsheet = SpreadsheetApp.getActiveSpreadsheet(); // Creates a text finder. var textFinder = spreadsheet.createTextFinder('dog'); // Returns the first occurrence of 'dog' in the spreadsheet. var firstOccurrence = textFinder.findNext(); // Replaces the last found occurrence of 'dog' with 'cat' and returns the number // of occurrences replaced. var numOccurrencesReplaced = findOccurrence.replaceWith('cat');_51

Menambahkan metadata developer dengan kunci, nilai, dan visibilitas yang ditentukan ke spreadsheet

Parameter

NameTypeDescription
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();

// Creates  a text finder.
var textFinder = spreadsheet.createTextFinder('dog');

// Returns the first occurrence of 'dog' in the spreadsheet.
var firstOccurrence = textFinder.findNext();

// Replaces the last found occurrence of 'dog' with 'cat' and returns the number
// of occurrences replaced.
var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
30
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
97Kunci untuk metadata pengembang baru.
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();

// Creates  a text finder.
var textFinder = spreadsheet.createTextFinder('dog');

// Returns the first occurrence of 'dog' in the spreadsheet.
var firstOccurrence = textFinder.findNext();

// Replaces the last found occurrence of 'dog' with 'cat' and returns the number
// of occurrences replaced.
var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
_46
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
97Nilai untuk metadata pengembang baru. ________299
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_299_______39Visibilitas metadata pengembang baru

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_03 — Spreadsheet ini, untuk chaining

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var spreadsheet = SpreadsheetApp.getActiveSpreadsheet(); // Creates a text finder. var textFinder = spreadsheet.createTextFinder('dog'); // Returns the first occurrence of 'dog' in the spreadsheet. var firstOccurrence = textFinder.findNext(); // Replaces the last found occurrence of 'dog' with 'cat' and returns the number // of occurrences replaced. var numOccurrencesReplaced = findOccurrence.replaceWith('cat');_61

Menambahkan pengguna tertentu ke daftar editor untuk

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03. Jika pengguna sudah ada dalam daftar pemirsa, metode ini akan mengeluarkan pengguna dari daftar pemirsa

Parameter

NameTypeDescription
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();

// Creates  a text finder.
var textFinder = spreadsheet.createTextFinder('dog');

// Returns the first occurrence of 'dog' in the spreadsheet.
var firstOccurrence = textFinder.findNext();

// Replaces the last found occurrence of 'dog' with 'cat' and returns the number
// of occurrences replaced.
var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
63
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
97Alamat email pengguna yang akan ditambahkan

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03 — Ini
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03, untuk merangkai

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var spreadsheet = SpreadsheetApp.getActiveSpreadsheet(); // Creates a text finder. var textFinder = spreadsheet.createTextFinder('dog'); // Returns the first occurrence of 'dog' in the spreadsheet. var firstOccurrence = textFinder.findNext(); // Replaces the last found occurrence of 'dog' with 'cat' and returns the number // of occurrences replaced. var numOccurrencesReplaced = findOccurrence.replaceWith('cat');_69

Menambahkan pengguna tertentu ke daftar editor untuk

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03. Jika pengguna sudah ada dalam daftar pemirsa, metode ini akan mengeluarkan pengguna dari daftar pemirsa

Parameter

NameTypeDescription
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();

// Creates  a text finder.
var textFinder = spreadsheet.createTextFinder('dog');

// Returns the first occurrence of 'dog' in the spreadsheet.
var firstOccurrence = textFinder.findNext();

// Replaces the last found occurrence of 'dog' with 'cat' and returns the number
// of occurrences replaced.
var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
71________99______22Representasi pengguna untuk ditambahkan

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03 — Ini
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03, untuk merangkai

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var spreadsheet = SpreadsheetApp.getActiveSpreadsheet(); // Creates a text finder. var textFinder = spreadsheet.createTextFinder('dog'); // Returns the first occurrence of 'dog' in the spreadsheet. var firstOccurrence = textFinder.findNext(); // Replaces the last found occurrence of 'dog' with 'cat' and returns the number // of occurrences replaced. var numOccurrencesReplaced = findOccurrence.replaceWith('cat');_77

Menambahkan larik pengguna tertentu ke daftar editor untuk

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03. Jika ada pengguna yang sudah ada dalam daftar pemirsa, metode ini akan mengeluarkan mereka dari daftar pemirsa

Parameter

NameTypeDescription
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();

// Creates  a text finder.
var textFinder = spreadsheet.createTextFinder('dog');

// Returns the first occurrence of 'dog' in the spreadsheet.
var firstOccurrence = textFinder.findNext();

// Replaces the last found occurrence of 'dog' with 'cat' and returns the number
// of occurrences replaced.
var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
79
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();

// Creates  a text finder.
var textFinder = spreadsheet.createTextFinder('dog');

// Returns the first occurrence of 'dog' in the spreadsheet.
var firstOccurrence = textFinder.findNext();

// Replaces the last found occurrence of 'dog' with 'cat' and returns the number
// of occurrences replaced.
var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
80Array alamat email pengguna untuk ditambahkan

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03 — Ini
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03, untuk merangkai

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var spreadsheet = SpreadsheetApp.getActiveSpreadsheet(); // Creates a text finder. var textFinder = spreadsheet.createTextFinder('dog'); // Returns the first occurrence of 'dog' in the spreadsheet. var firstOccurrence = textFinder.findNext(); // Replaces the last found occurrence of 'dog' with 'cat' and returns the number // of occurrences replaced. var numOccurrencesReplaced = findOccurrence.replaceWith('cat');_85

Membuat menu baru di UI Spreadsheet

Setiap entri menu menjalankan fungsi yang ditentukan pengguna. Biasanya, Anda ingin memanggilnya dari fungsi

var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();

// Creates  a text finder.
var textFinder = spreadsheet.createTextFinder('dog');

// Returns the first occurrence of 'dog' in the spreadsheet.
var firstOccurrence = textFinder.findNext();

// Replaces the last found occurrence of 'dog' with 'cat' and returns the number
// of occurrences replaced.
var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
86 sehingga menu dibuat secara otomatis saat spreadsheet dimuat

// The onOpen function is executed automatically every time a Spreadsheet is loaded
function onOpen() {
  var ss = SpreadsheetApp.getActiveSpreadsheet();
  var menuEntries = [];
  // When the user clicks on "addMenuExample" then "Menu Entry 1", the function function1 is
  // executed.
  menuEntries.push({name: "Menu Entry 1", functionName: "function1"});
  menuEntries.push(null); // line separator
  menuEntries.push({name: "Menu Entry 2", functionName: "function2"});

  ss.addMenu("addMenuExample", menuEntries);
}

Parameter

NameTypeDescription
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();

// Creates  a text finder.
var textFinder = spreadsheet.createTextFinder('dog');

// Returns the first occurrence of 'dog' in the spreadsheet.
var firstOccurrence = textFinder.findNext();

// Replaces the last found occurrence of 'dog' with 'cat' and returns the number
// of occurrences replaced.
var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
87
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
97Nama menu yang akan dibuat. ________299
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_299_______90Sebuah array peta JavaScript dengan
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();

// Creates  a text finder.
var textFinder = spreadsheet.createTextFinder('dog');

// Returns the first occurrence of 'dog' in the spreadsheet.
var firstOccurrence = textFinder.findNext();

// Replaces the last found occurrence of 'dog' with 'cat' and returns the number
// of occurrences replaced.
var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
87 dan ________299______92 parameter. Anda dapat menggunakan fungsi dari pustaka yang disertakan, seperti
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();

// Creates  a text finder.
var textFinder = spreadsheet.createTextFinder('dog');

// Returns the first occurrence of 'dog' in the spreadsheet.
var firstOccurrence = textFinder.findNext();

// Replaces the last found occurrence of 'dog' with 'cat' and returns the number
// of occurrences replaced.
var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
93

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var spreadsheet = SpreadsheetApp.getActiveSpreadsheet(); // Creates a text finder. var textFinder = spreadsheet.createTextFinder('dog'); // Returns the first occurrence of 'dog' in the spreadsheet. var firstOccurrence = textFinder.findNext(); // Replaces the last found occurrence of 'dog' with 'cat' and returns the number // of occurrences replaced. var numOccurrencesReplaced = findOccurrence.replaceWith('cat');_96

Menambahkan pengguna tertentu ke daftar pemirsa untuk

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03. Jika pengguna sudah ada di daftar editor, metode ini tidak berpengaruh

Parameter

NameTypeDescription
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();

// Creates  a text finder.
var textFinder = spreadsheet.createTextFinder('dog');

// Returns the first occurrence of 'dog' in the spreadsheet.
var firstOccurrence = textFinder.findNext();

// Replaces the last found occurrence of 'dog' with 'cat' and returns the number
// of occurrences replaced.
var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
63
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
97Alamat email pengguna yang akan ditambahkan

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03 — Ini
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03, untuk merangkai

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


// The code below deletes the currently active sheet and stores the new active sheet in a // variable var newSheet = SpreadsheetApp.getActiveSpreadsheet().deleteActiveSheet();_04

Menambahkan pengguna tertentu ke daftar pemirsa untuk

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03. Jika pengguna sudah ada di daftar editor, metode ini tidak berpengaruh

Parameter

NameTypeDescription
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();

// Creates  a text finder.
var textFinder = spreadsheet.createTextFinder('dog');

// Returns the first occurrence of 'dog' in the spreadsheet.
var firstOccurrence = textFinder.findNext();

// Replaces the last found occurrence of 'dog' with 'cat' and returns the number
// of occurrences replaced.
var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
71________99______22Representasi pengguna untuk ditambahkan

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03 — Ini
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03, untuk merangkai

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


// The code below deletes the currently active sheet and stores the new active sheet in a // variable var newSheet = SpreadsheetApp.getActiveSpreadsheet().deleteActiveSheet();_12

Menambahkan larik pengguna tertentu ke daftar pemirsa untuk

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03. Jika ada pengguna yang sudah ada dalam daftar editor, metode ini tidak berpengaruh bagi mereka

Parameter

NameTypeDescription
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();

// Creates  a text finder.
var textFinder = spreadsheet.createTextFinder('dog');

// Returns the first occurrence of 'dog' in the spreadsheet.
var firstOccurrence = textFinder.findNext();

// Replaces the last found occurrence of 'dog' with 'cat' and returns the number
// of occurrences replaced.
var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
79
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();

// Creates  a text finder.
var textFinder = spreadsheet.createTextFinder('dog');

// Returns the first occurrence of 'dog' in the spreadsheet.
var firstOccurrence = textFinder.findNext();

// Replaces the last found occurrence of 'dog' with 'cat' and returns the number
// of occurrences replaced.
var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
80Array alamat email pengguna untuk ditambahkan

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03 — Ini
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03, untuk merangkai

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


// The code below deletes the currently active sheet and stores the new active sheet in a // variable var newSheet = SpreadsheetApp.getActiveSpreadsheet().deleteActiveSheet();_20

Menambahkan baris ke bagian bawah region data saat ini di sheet

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);

Parameter

NameTypeDescription
// The code below deletes the currently active sheet and stores the new active sheet in a
// variable
var newSheet = SpreadsheetApp.getActiveSpreadsheet().deleteActiveSheet();
21
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();

// Creates  a text finder.
var textFinder = spreadsheet.createTextFinder('dog');

// Returns the first occurrence of 'dog' in the spreadsheet.
var firstOccurrence = textFinder.findNext();

// Replaces the last found occurrence of 'dog' with 'cat' and returns the number
// of occurrences replaced.
var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
90Array nilai untuk disisipkan setelah baris terakhir dalam sheet

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_31 — Sheet, berguna untuk metode chaining

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


// The code below deletes the currently active sheet and stores the new active sheet in a // variable var newSheet = SpreadsheetApp.getActiveSpreadsheet().deleteActiveSheet();_26

Mengatur lebar kolom yang diberikan agar sesuai dengan isinya

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);

Parameter

NameTypeDescription
// The code below deletes the currently active sheet and stores the new active sheet in a
// variable
var newSheet = SpreadsheetApp.getActiveSpreadsheet().deleteActiveSheet();
27
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
72Posisi kolom yang diberikan untuk diubah ukurannya

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_31 — sheet, berguna untuk metode chaining

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


// The code below deletes the currently active sheet and stores the new active sheet in a // variable var newSheet = SpreadsheetApp.getActiveSpreadsheet().deleteActiveSheet();_32

Menyalin spreadsheet dan mengembalikan yang baru

// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());

Parameter

NameTypeDescription
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();

// Creates  a text finder.
var textFinder = spreadsheet.createTextFinder('dog');

// Returns the first occurrence of 'dog' in the spreadsheet.
var firstOccurrence = textFinder.findNext();

// Replaces the last found occurrence of 'dog' with 'cat' and returns the number
// of occurrences replaced.
var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
87
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
97Nama salinan

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_03 — Spreadsheet ini, untuk chaining

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


// The code below deletes the currently active sheet and stores the new active sheet in a // variable var newSheet = SpreadsheetApp.getActiveSpreadsheet().deleteActiveSheet();_38

Mengembalikan

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_37 untuk menemukan metadata pengembang dalam cakupan spreadsheet ini. Secara default, ini mempertimbangkan semua metadata yang terkait dengan spreadsheet, sheet, baris, dan kolom

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
37 — Pengembang metadata finder untuk mencari metadata dalam cakupan spreadsheet ini


// The code below deletes the currently active sheet and stores the new active sheet in a // variable var newSheet = SpreadsheetApp.getActiveSpreadsheet().deleteActiveSheet();_41

Membuat pencari teks untuk spreadsheet, yang dapat digunakan untuk mencari dan mengganti teks di dalam spreadsheet. Pencarian dimulai dari lembar pertama spreadsheet

var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();

// Creates  a text finder.
var textFinder = spreadsheet.createTextFinder('dog');

// Returns the first occurrence of 'dog' in the spreadsheet.
var firstOccurrence = textFinder.findNext();

// Replaces the last found occurrence of 'dog' with 'cat' and returns the number
// of occurrences replaced.
var numOccurrencesReplaced = findOccurrence.replaceWith('cat');

Parameter

NameTypeDescription
// The code below deletes the currently active sheet and stores the new active sheet in a
// variable
var newSheet = SpreadsheetApp.getActiveSpreadsheet().deleteActiveSheet();
42
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
97Teks yang akan dicari

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
40 —
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
40 untuk spreadsheet


// The code below deletes the currently active sheet and stores the new active sheet in a // variable var newSheet = SpreadsheetApp.getActiveSpreadsheet().deleteActiveSheet();46

Menghapus sheet yang sedang aktif

// The code below deletes the currently active sheet and stores the new active sheet in a
// variable
var newSheet = SpreadsheetApp.getActiveSpreadsheet().deleteActiveSheet();

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_31 — Lembar aktif baru

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


// The code below deletes the currently active sheet and stores the new active sheet in a // variable var newSheet = SpreadsheetApp.getActiveSpreadsheet().deleteActiveSheet();_50

Menghapus kolom pada posisi kolom yang diberikan

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Columns start at "1" - this deletes the first column
sheet.deleteColumn(1);

Parameter

NameTypeDescription
// The code below deletes the currently active sheet and stores the new active sheet in a
// variable
var newSheet = SpreadsheetApp.getActiveSpreadsheet().deleteActiveSheet();
27
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
72Posisi kolom, mulai dari 1 untuk kolom pertama

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_31 — sheet, berguna untuk metode chaining

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


// The code below deletes the currently active sheet and stores the new active sheet in a // variable var newSheet = SpreadsheetApp.getActiveSpreadsheet().deleteActiveSheet();_56

Menghapus sejumlah kolom mulai dari posisi kolom yang diberikan

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Columns start at "1" - this deletes the first two columns
sheet.deleteColumns(1, 2);

Parameter

NameTypeDescription
// The code below deletes the currently active sheet and stores the new active sheet in a
// variable
var newSheet = SpreadsheetApp.getActiveSpreadsheet().deleteActiveSheet();
27
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
72Posisi kolom pertama yang akan dihapus.
// The code below deletes the currently active sheet and stores the new active sheet in a
// variable
var newSheet = SpreadsheetApp.getActiveSpreadsheet().deleteActiveSheet();
59
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
72Jumlah kolom yang akan dihapus

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


// The code below deletes the currently active sheet and stores the new active sheet in a // variable var newSheet = SpreadsheetApp.getActiveSpreadsheet().deleteActiveSheet();_63

Menghapus baris pada posisi baris tertentu

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first row
sheet.deleteRow(1);

Parameter

NameTypeDescription
// The code below deletes the currently active sheet and stores the new active sheet in a
// variable
var newSheet = SpreadsheetApp.getActiveSpreadsheet().deleteActiveSheet();
64
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
72Posisi baris, mulai dari 1 untuk baris pertama

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_31 — sheet, berguna untuk metode chaining

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


// The code below deletes the currently active sheet and stores the new active sheet in a // variable var newSheet = SpreadsheetApp.getActiveSpreadsheet().deleteActiveSheet();_69

Menghapus sejumlah baris mulai dari posisi baris yang diberikan

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first two rows
sheet.deleteRows(1, 2);

Parameter

NameTypeDescription
// The code below deletes the currently active sheet and stores the new active sheet in a
// variable
var newSheet = SpreadsheetApp.getActiveSpreadsheet().deleteActiveSheet();
64
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
72Posisi baris pertama yang akan dihapus.
// The code below deletes the currently active sheet and stores the new active sheet in a
// variable
var newSheet = SpreadsheetApp.getActiveSpreadsheet().deleteActiveSheet();
59
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
72Jumlah baris yang akan dihapus

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


// The code below deletes the currently active sheet and stores the new active sheet in a // variable var newSheet = SpreadsheetApp.getActiveSpreadsheet().deleteActiveSheet();_76

Menghapus lembar yang ditentukan

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
0

Parameter

NameTypeDescription
// The code below deletes the currently active sheet and stores the new active sheet in a
// variable
var newSheet = SpreadsheetApp.getActiveSpreadsheet().deleteActiveSheet();
77
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
31The sheet to delete

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


// The code below deletes the currently active sheet and stores the new active sheet in a // variable var newSheet = SpreadsheetApp.getActiveSpreadsheet().deleteActiveSheet();_81

Gandakan lembar aktif dan jadikan lembar aktif

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_1

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_31 — Lembar baru

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


// The code below deletes the currently active sheet and stores the new active sheet in a // variable var newSheet = SpreadsheetApp.getActiveSpreadsheet().deleteActiveSheet();_85

Mengembalikan sel aktif di lembar ini

Catatan. Lebih baik menggunakan

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
73, yang mengembalikan sel yang disorot saat ini

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_2

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_56 — sel aktif saat ini

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


// The code below deletes the currently active sheet and stores the new active sheet in a // variable var newSheet = SpreadsheetApp.getActiveSpreadsheet().deleteActiveSheet();_90

Mengembalikan rentang yang dipilih dalam lembar aktif, atau

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
59 jika tidak ada rentang aktif. Jika beberapa rentang dipilih, metode ini hanya mengembalikan rentang yang dipilih terakhir

Istilah "jangkauan aktif" mengacu pada rentang yang telah dipilih pengguna di lembar aktif, tetapi dalam fungsi khusus, ini merujuk pada sel yang sedang dihitung ulang secara aktif

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_3

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_56 — rentang aktif

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34

Lihat juga

  • // This code makes a copy of the current spreadsheet and names it appropriately
    var ss = SpreadsheetApp.getActiveSpreadsheet();
    ss.copy("Copy of " + ss.getName());
    _55


// The code below deletes the currently active sheet and stores the new active sheet in a // variable var newSheet = SpreadsheetApp.getActiveSpreadsheet().deleteActiveSheet();_96

Mengembalikan daftar rentang aktif di lembar aktif atau

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
59 jika tidak ada rentang aktif

Jika ada rentang tunggal yang dipilih, ini berlaku sebagai panggilan

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
57

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_4

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_61 — daftar rentang aktif

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34

Lihat juga

  • // This code makes a copy of the current spreadsheet and names it appropriately
    var ss = SpreadsheetApp.getActiveSpreadsheet();
    ss.copy("Copy of " + ss.getName());
    _59


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Columns start at "1" - this deletes the first column sheet.deleteColumn(1);_03

Mendapat lembar aktif di spreadsheet

Sheet aktif dalam spreadsheet adalah sheet yang ditampilkan di UI spreadsheet

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
5

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_31 — Lembar aktif dalam spreadsheet


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Columns start at "1" - this deletes the first column sheet.deleteColumn(1);_05

Kembalikan data di dalam objek ini sebagai blob yang dikonversi ke tipe konten yang ditentukan. Metode ini menambahkan ekstensi yang sesuai ke nama file—misalnya, "myfile. pdf". Namun, diasumsikan bahwa bagian dari nama file yang mengikuti periode terakhir (jika ada) adalah ekstensi yang harus diganti. Akibatnya, "Daftar Belanja. 12. 25. 2014" menjadi "Daftar Belanja. 12. 25. pdf"

Untuk melihat kuota harian untuk konversi, lihat Kuota untuk Layanan Google. Domain Google Workspace yang baru dibuat mungkin dikenakan kuota yang lebih ketat untuk sementara

Parameter

NameTypeDescription
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Columns start at "1" - this deletes the first column
sheet.deleteColumn(1);
06
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
97Jenis MIME yang akan dikonversi menjadi. Untuk sebagian besar gumpalan,
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Columns start at "1" - this deletes the first column
sheet.deleteColumn(1);
_08 adalah satu-satunya opsi yang valid. Untuk gambar dalam format BMP, GIF, JPEG, atau PNG, salah satu dari
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Columns start at "1" - this deletes the first column
sheet.deleteColumn(1);
09,
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Columns start at "1" - this deletes the first column
sheet.deleteColumn(1);
10,
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Columns start at "1" - this deletes the first column
sheet.deleteColumn(1);
11, atau
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Columns start at "1" - this deletes the first column
sheet.deleteColumn(1);
12 juga berlaku

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_66 — Data sebagai gumpalan


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Columns start at "1" - this deletes the first column sheet.deleteColumn(1);_14

Mengembalikan semua banding dalam spreadsheet ini

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_68 — Bandeng dalam spreadsheet ini

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Columns start at "1" - this deletes the first column sheet.deleteColumn(1);_18

Kembalikan data di dalam objek ini sebagai blob

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_66 — Data sebagai gumpalan


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Columns start at "1" - this deletes the first column sheet.deleteColumn(1);_20

Mendapatkan lebar dalam piksel dari kolom yang diberikan

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_6

Parameter

NameTypeDescription
// The code below deletes the currently active sheet and stores the new active sheet in a
// variable
var newSheet = SpreadsheetApp.getActiveSpreadsheet().deleteActiveSheet();
27
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
72Posisi kolom yang akan diperiksa

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_72 — lebar kolom dalam piksel

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Columns start at "1" - this deletes the first column sheet.deleteColumn(1);_26

Mengembalikan sel saat ini di lembar aktif atau

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
59 jika tidak ada sel saat ini. Sel saat ini adalah sel yang memiliki fokus di UI Google Sheets, dan disorot oleh batas gelap. Tidak pernah ada lebih dari satu sel saat ini. Saat pengguna memilih satu atau beberapa rentang sel, salah satu sel yang dipilih adalah sel saat ini

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_7

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_56 — sel saat ini

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Columns start at "1" - this deletes the first column sheet.deleteColumn(1);_31

Mengembalikan

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_56 sesuai dengan dimensi tempat data berada

Ini secara fungsional setara dengan membuat Rentang yang dibatasi oleh A1 dan (Sheet. getLastColumn(), Lembar. getLastRow())

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_8

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
56 — rentang yang terdiri dari semua data dalam spreadsheet

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Columns start at "1" - this deletes the first column sheet.deleteColumn(1);_36

Mendapatkan semua rumus sumber data

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_80 — Daftar rumus sumber data

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Columns start at "1" - this deletes the first column sheet.deleteColumn(1);_40

Mendapatkan semua tabel pivot sumber data

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_82 — Daftar tabel pivot sumber data

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Columns start at "1" - this deletes the first column sheet.deleteColumn(1);_44

Mendapatkan jadwal penyegaran spreadsheet ini

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_84 — Jadwal penyegaran spreadsheet ini

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Columns start at "1" - this deletes the first column sheet.deleteColumn(1);_48

Mengembalikan semua lembar sumber data dalam spreadsheet

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_86 — Array dari semua lembar sumber data

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Columns start at "1" - this deletes the first column sheet.deleteColumn(1);_52

Mendapat semua tabel sumber data

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_88 — Daftar tabel sumber data

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Columns start at "1" - this deletes the first column sheet.deleteColumn(1);_56

Mengembalikan semua sumber data di spreadsheet

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_90 — Array dari semua sumber data

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Columns start at "1" - this deletes the first column sheet.deleteColumn(1);_60

Dapatkan metadata pengembang yang terkait dengan spreadsheet tingkat atas

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
92 — The developer metadata associated with this range

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Columns start at "1" - this deletes the first column sheet.deleteColumn(1);_64

Mendapatkan daftar editor untuk

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03 ini

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_94 — Array pengguna dengan izin edit

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Columns start at "1" - this deletes the first column sheet.deleteColumn(1);_69

Mengembalikan URL untuk formulir yang mengirimkan responsnya ke spreadsheet ini, atau

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
59 jika spreadsheet ini tidak memiliki formulir terkait. Jika beberapa formulir mengirim respons ke spreadsheet ini, URL formulir yang dikembalikan tidak dapat ditentukan. Sebagai alternatif, asosiasi URL formulir per lembar dapat diambil melalui metode
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Columns start at "1" - this deletes the first column
sheet.deleteColumn(1);
71

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_97 — URL untuk formulir yang menempatkan responsnya di spreadsheet ini, atau
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
59 jika spreadsheet ini tidak memiliki formulir terkait

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Columns start at "1" - this deletes the first column sheet.deleteColumn(1);_76

Mengembalikan jumlah kolom yang dibekukan

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_9

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_72 — jumlah kolom yang dibekukan

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Columns start at "1" - this deletes the first column sheet.deleteColumn(1);_80

Mengembalikan jumlah baris beku

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
_0

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_72 — jumlah baris yang dibekukan

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Columns start at "1" - this deletes the first column sheet.deleteColumn(1);_84

Mendapatkan pengidentifikasi unik untuk spreadsheet ini. ID spreadsheet dapat diekstrak dari URL-nya. Misalnya, ID spreadsheet di URL https. //dokumen. google. com/spreadsheets/d/abc1234567/edit#gid=0 adalah "abc1234567"

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
_1

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_97 — ID unik (atau kunci) untuk spreadsheet


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Columns start at "1" - this deletes the first column sheet.deleteColumn(1);_86

Mengembalikan semua gambar over-the-grid pada sheet

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
_06 — Kumpulan gambar over-the-grid

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Columns start at "1" - this deletes the first column sheet.deleteColumn(1);_90

Mengembalikan nilai ambang batas yang digunakan selama perhitungan berulang. Ketika hasil perhitungan berturut-turut berbeda kurang dari nilai ini, perhitungan berulang berhenti

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
_08 — Ambang batas konvergensi

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Columns start at "1" - this deletes the first column sheet.deleteColumn(1);_94

Mengembalikan posisi kolom terakhir yang berisi konten

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
_2

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_72 — kolom terakhir dari lembar yang berisi konten

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Columns start at "1" - this deletes the first column sheet.deleteColumn(1);_98

Mengembalikan posisi baris terakhir yang berisi konten

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
_2

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_72 — baris terakhir dari lembar yang berisi konten

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Columns start at "1" - this deletes the first two columns sheet.deleteColumns(1, 2);_02

Mengembalikan jumlah maksimum iterasi untuk digunakan selama perhitungan berulang

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_72 — Jumlah maksimum iterasi perhitungan

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Columns start at "1" - this deletes the first two columns sheet.deleteColumns(1, 2);_06

Mendapat nama dokumen

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
_4

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_97 — Nama spreadsheet

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Columns start at "1" - this deletes the first two columns sheet.deleteColumns(1, 2);_10

Dapatkan semua rentang bernama di spreadsheet ini

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
_5

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
_18 — Sebuah array dari semua rentang bernama dalam spreadsheet

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Columns start at "1" - this deletes the first two columns sheet.deleteColumns(1, 2);_14

Mengembalikan jumlah lembar dalam spreadsheet ini

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
_6

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_72 — Jumlah lembar dalam spreadsheet


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Columns start at "1" - this deletes the first two columns sheet.deleteColumns(1, 2);_16

Mengembalikan pemilik dokumen, atau

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
59 untuk dokumen di drive bersama

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
_7

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
22 — The owner of the document, or
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
59 if the document is in a shared drive

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Columns start at "1" - this deletes the first two columns sheet.deleteColumns(1, 2);_22

Mengembalikan daftar tema yang telah ditentukan sebelumnya

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
_8

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
_25 — Daftar tema yang telah ditentukan sebelumnya

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Columns start at "1" - this deletes the first two columns sheet.deleteColumns(1, 2);_26

Mendapatkan larik objek yang mewakili semua rentang atau lembar yang dilindungi di spreadsheet

________99
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_198_______0

Parameter

NameTypeDescription
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Columns start at "1" - this deletes the first two columns
sheet.deleteColumns(1, 2);
27
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Columns start at "1" - this deletes the first two columns
sheet.deleteColumns(1, 2);
28Jenis kawasan lindung, baik
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Columns start at "1" - this deletes the first two columns
sheet.deleteColumns(1, 2);
29 atau
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Columns start at "1" - this deletes the first two columns
sheet.deleteColumns(1, 2);
30

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
_27 — Larik objek yang mewakili semua rentang atau lembar yang dilindungi dalam spreadsheet

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Columns start at "1" - this deletes the first two columns sheet.deleteColumns(1, 2);_34

Mengembalikan rentang sebagaimana ditentukan dalam notasi A1 atau notasi R1C1

// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
_1

Parameter

NameTypeDescription
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Columns start at "1" - this deletes the first two columns
sheet.deleteColumns(1, 2);
35
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
97Rentang yang akan dikembalikan, seperti yang ditentukan dalam notasi A1 atau notasi R1C1

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_56 — kisaran di lokasi yang ditentukan

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Columns start at "1" - this deletes the first two columns sheet.deleteColumns(1, 2);_40

Mengembalikan rentang bernama, atau

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
59 jika tidak ada rentang dengan nama yang diberikan ditemukan. Jika beberapa lembar spreadsheet menggunakan nama rentang yang sama, tentukan nama lembar tanpa tanda kutip tambahan — misalnya,
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Columns start at "1" - this deletes the first two columns
sheet.deleteColumns(1, 2);
42 atau
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Columns start at "1" - this deletes the first two columns
sheet.deleteColumns(1, 2);
43, tetapi bukan
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Columns start at "1" - this deletes the first two columns
sheet.deleteColumns(1, 2);
44

// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
_2

Parameter

NameTypeDescription
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();

// Creates  a text finder.
var textFinder = spreadsheet.createTextFinder('dog');

// Returns the first occurrence of 'dog' in the spreadsheet.
var firstOccurrence = textFinder.findNext();

// Replaces the last found occurrence of 'dog' with 'cat' and returns the number
// of occurrences replaced.
var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
87
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
97Nama rentang untuk mendapatkan

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_56 — Rentang sel dengan nama yang diberikan


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Columns start at "1" - this deletes the first two columns sheet.deleteColumns(1, 2);_48

Mengembalikan koleksi

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_61 yang mewakili rentang dalam lembar yang sama yang ditentukan oleh daftar notasi A1 atau notasi R1C1 yang tidak kosong

// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
_3

Parameter

NameTypeDescription
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Columns start at "1" - this deletes the first two columns
sheet.deleteColumns(1, 2);
50
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();

// Creates  a text finder.
var textFinder = spreadsheet.createTextFinder('dog');

// Returns the first occurrence of 'dog' in the spreadsheet.
var firstOccurrence = textFinder.findNext();

// Replaces the last found occurrence of 'dog' with 'cat' and returns the number
// of occurrences replaced.
var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
80Daftar rentang yang akan dikembalikan, sebagaimana ditentukan dalam notasi A1 atau notasi R1C1

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_61 — daftar jangkauan di lokasi yang ditentukan

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Columns start at "1" - this deletes the first two columns sheet.deleteColumns(1, 2);_55

Mengembalikan interval perhitungan untuk spreadsheet ini

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
_37 — Interval perhitungan untuk spreadsheet ini

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Columns start at "1" - this deletes the first two columns sheet.deleteColumns(1, 2);_59

Mendapat tinggi dalam piksel dari baris yang diberikan

// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
_4

Parameter

NameTypeDescription
// The code below deletes the currently active sheet and stores the new active sheet in a
// variable
var newSheet = SpreadsheetApp.getActiveSpreadsheet().deleteActiveSheet();
64
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
72Posisi baris yang akan diperiksa

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_72 — tinggi baris dalam piksel

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Columns start at "1" - this deletes the first two columns sheet.deleteColumns(1, 2);_65

Mengembalikan

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
41 saat ini di spreadsheet

// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
_5

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
_41 — pilihan saat ini

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Columns start at "1" - this deletes the first two columns sheet.deleteColumns(1, 2);_70

Mengembalikan lembar dengan nama yang diberikan

Jika beberapa lembar memiliki nama yang sama, lembar paling kiri akan dikembalikan. Mengembalikan

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_59 jika tidak ada lembar dengan nama yang diberikan

// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
_6

Parameter

NameTypeDescription
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();

// Creates  a text finder.
var textFinder = spreadsheet.createTextFinder('dog');

// Returns the first occurrence of 'dog' in the spreadsheet.
var firstOccurrence = textFinder.findNext();

// Replaces the last found occurrence of 'dog' with 'cat' and returns the number
// of occurrences replaced.
var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
87
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
97Nama sheet yang akan diambil

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_31 — Lembaran dengan nama yang diberikan


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Columns start at "1" - this deletes the first two columns sheet.deleteColumns(1, 2);_75

Mengembalikan ID lembar yang diwakili oleh objek ini

Ini adalah ID untuk sheet yang unik untuk spreadsheet. ID adalah bilangan bulat yang meningkat secara monoton yang ditetapkan pada waktu pembuatan sheet yang tidak bergantung pada posisi sheet. Ini berguna dalam hubungannya dengan metode seperti

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Columns start at "1" - this deletes the first two columns
sheet.deleteColumns(1, 2);
76 yang menggunakan parameter
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Columns start at "1" - this deletes the first two columns
sheet.deleteColumns(1, 2);
77 daripada contoh
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
31

// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
_7

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
72 — ID untuk sheet yang unik untuk spreadsheet

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Columns start at "1" - this deletes the first two columns sheet.deleteColumns(1, 2);_82

Mengembalikan nama sheet

// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
_8

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
97 — the name of the sheet

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Columns start at "1" - this deletes the first two columns sheet.deleteColumns(1, 2);_86

Mengembalikan kisi nilai persegi panjang untuk rentang ini mulai dari koordinat yang diberikan. Nilai -1 yang diberikan sebagai posisi baris atau kolom sama dengan mendapatkan baris atau kolom terakhir yang memiliki data di lembar

// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
_9

Parameter

NameTypeDescription
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Columns start at "1" - this deletes the first two columns
sheet.deleteColumns(1, 2);
87
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
72Posisi baris awal.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Columns start at "1" - this deletes the first two columns
sheet.deleteColumns(1, 2);
89
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
72Posisi kolom awal.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Columns start at "1" - this deletes the first two columns
sheet.deleteColumns(1, 2);
_91
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
72Jumlah baris untuk mengembalikan nilai.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Columns start at "1" - this deletes the first two columns
sheet.deleteColumns(1, 2);
93
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
72Jumlah kolom untuk mengembalikan nilai

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
_50 — array nilai dua dimensi

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Columns start at "1" - this deletes the first two columns sheet.deleteColumns(1, 2);_98

Dapatkan semua sheet di spreadsheet ini

var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();

// Creates  a text finder.
var textFinder = spreadsheet.createTextFinder('dog');

// Returns the first occurrence of 'dog' in the spreadsheet.
var firstOccurrence = textFinder.findNext();

// Replaces the last found occurrence of 'dog' with 'cat' and returns the number
// of occurrences replaced.
var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
_0

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
_52 — Sebuah array dari semua lembar dalam spreadsheet


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Rows start at "1" - this deletes the first row sheet.deleteRow(1);_00

Mendapatkan lokal spreadsheet

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_97 — Lokal spreadsheet

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Rows start at "1" - this deletes the first row sheet.deleteRow(1);_04

Mengembalikan tema spreadsheet saat ini, atau

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
59 jika tidak ada tema yang diterapkan

var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();

// Creates  a text finder.
var textFinder = spreadsheet.createTextFinder('dog');

// Returns the first occurrence of 'dog' in the spreadsheet.
var firstOccurrence = textFinder.findNext();

// Replaces the last found occurrence of 'dog' with 'cat' and returns the number
// of occurrences replaced.
var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
_1

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
_56 — Tema yang diterapkan saat ini

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Rows start at "1" - this deletes the first row sheet.deleteRow(1);_09

Mendapatkan zona waktu untuk spreadsheet

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_97 — Zona waktu, ditentukan dalam format "panjang" (misalnya, "Amerika/New_York", seperti yang dicantumkan oleh Joda. org)

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Rows start at "1" - this deletes the first row sheet.deleteRow(1);_13

Mengembalikan URL untuk spreadsheet yang diberikan

var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();

// Creates  a text finder.
var textFinder = spreadsheet.createTextFinder('dog');

// Returns the first occurrence of 'dog' in the spreadsheet.
var firstOccurrence = textFinder.findNext();

// Replaces the last found occurrence of 'dog' with 'cat' and returns the number
// of occurrences replaced.
var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
_2

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_97 — URL untuk spreadsheet yang diberikan

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Rows start at "1" - this deletes the first row sheet.deleteRow(1);_17

Dapatkan daftar pemirsa dan pemberi komentar untuk

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03 ini

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_94 — Array pengguna dengan izin melihat atau berkomentar

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Rows start at "1" - this deletes the first row sheet.deleteRow(1);_22

Menyembunyikan kolom atau kolom dalam rentang yang diberikan

var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();

// Creates  a text finder.
var textFinder = spreadsheet.createTextFinder('dog');

// Returns the first occurrence of 'dog' in the spreadsheet.
var firstOccurrence = textFinder.findNext();

// Replaces the last found occurrence of 'dog' with 'cat' and returns the number
// of occurrences replaced.
var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
_3

Parameter

NameTypeDescription
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first row
sheet.deleteRow(1);
23
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
56Rentang kolom yang akan disembunyikan

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Rows start at "1" - this deletes the first row sheet.deleteRow(1);_27

Menyembunyikan baris dalam rentang yang diberikan

var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();

// Creates  a text finder.
var textFinder = spreadsheet.createTextFinder('dog');

// Returns the first occurrence of 'dog' in the spreadsheet.
var firstOccurrence = textFinder.findNext();

// Replaces the last found occurrence of 'dog' with 'cat' and returns the number
// of occurrences replaced.
var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
_4

Parameter

NameTypeDescription
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first row
sheet.deleteRow(1);
28
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
56Rentang baris yang akan disembunyikan

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Rows start at "1" - this deletes the first row sheet.deleteRow(1);_32

Menyisipkan kolom setelah posisi kolom yang diberikan

var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();

// Creates  a text finder.
var textFinder = spreadsheet.createTextFinder('dog');

// Returns the first occurrence of 'dog' in the spreadsheet.
var firstOccurrence = textFinder.findNext();

// Replaces the last found occurrence of 'dog' with 'cat' and returns the number
// of occurrences replaced.
var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
_5

Parameter

NameTypeDescription
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first row
sheet.deleteRow(1);
33
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
72Kolom setelah kolom baru harus ditambahkan

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_31 — sheet, berguna untuk metode chaining

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Rows start at "1" - this deletes the first row sheet.deleteRow(1);_38

Menyisipkan kolom sebelum posisi kolom yang diberikan

var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();

// Creates  a text finder.
var textFinder = spreadsheet.createTextFinder('dog');

// Returns the first occurrence of 'dog' in the spreadsheet.
var firstOccurrence = textFinder.findNext();

// Replaces the last found occurrence of 'dog' with 'cat' and returns the number
// of occurrences replaced.
var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
_6

Parameter

NameTypeDescription
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first row
sheet.deleteRow(1);
39
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
72Kolom sebelum kolom baru harus ditambahkan

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_31 — sheet, berguna untuk metode chaining

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Rows start at "1" - this deletes the first row sheet.deleteRow(1);_44

Menyisipkan sejumlah kolom setelah posisi kolom yang diberikan

var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();

// Creates  a text finder.
var textFinder = spreadsheet.createTextFinder('dog');

// Returns the first occurrence of 'dog' in the spreadsheet.
var firstOccurrence = textFinder.findNext();

// Replaces the last found occurrence of 'dog' with 'cat' and returns the number
// of occurrences replaced.
var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
_7

Parameter

NameTypeDescription
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first row
sheet.deleteRow(1);
33
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
72Kolom setelah kolom baru harus ditambahkan.
// The code below deletes the currently active sheet and stores the new active sheet in a
// variable
var newSheet = SpreadsheetApp.getActiveSpreadsheet().deleteActiveSheet();
59
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
72Jumlah kolom yang akan disisipkan

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_31 — sheet, berguna untuk metode chaining

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Rows start at "1" - this deletes the first row sheet.deleteRow(1);_52

Menyisipkan sejumlah kolom sebelum posisi kolom yang diberikan

var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();

// Creates  a text finder.
var textFinder = spreadsheet.createTextFinder('dog');

// Returns the first occurrence of 'dog' in the spreadsheet.
var firstOccurrence = textFinder.findNext();

// Replaces the last found occurrence of 'dog' with 'cat' and returns the number
// of occurrences replaced.
var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
_8

Parameter

NameTypeDescription
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first row
sheet.deleteRow(1);
39
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
72Kolom sebelum kolom baru harus ditambahkan.
// The code below deletes the currently active sheet and stores the new active sheet in a
// variable
var newSheet = SpreadsheetApp.getActiveSpreadsheet().deleteActiveSheet();
59
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
72Jumlah kolom yang akan disisipkan

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_31 — sheet, berguna untuk metode chaining

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Rows start at "1" - this deletes the first row sheet.deleteRow(1);_60

Menyisipkan

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
_78 baru di spreadsheet dan memulai eksekusi data. As a side effect, this also makes the new sheet the active sheet

Mengeluarkan pengecualian jika jenis sumber data tidak diaktifkan. Gunakan metode

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first row
sheet.deleteRow(1);
_62 untuk mengaktifkan eksekusi data untuk jenis sumber data tertentu

Parameter

NameTypeDescription
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first row
sheet.deleteRow(1);
63
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first row
sheet.deleteRow(1);
64Spesifikasi sumber data yang akan disisipkan

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
_78 — Lembar sumber data baru

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Rows start at "1" - this deletes the first row sheet.deleteRow(1);_68

Menyisipkan

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_03 sebagai gambar dalam dokumen pada baris dan kolom tertentu. Ukuran gambar diambil dari isi blob. Ukuran gumpalan maksimum yang didukung adalah 2 MB

var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();

// Creates  a text finder.
var textFinder = spreadsheet.createTextFinder('dog');

// Returns the first occurrence of 'dog' in the spreadsheet.
var firstOccurrence = textFinder.findNext();

// Replaces the last found occurrence of 'dog' with 'cat' and returns the number
// of occurrences replaced.
var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
_9

Parameter

NameTypeDescription
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first row
sheet.deleteRow(1);
70________470______71Blob yang berisi konten gambar, tipe MIME, dan (opsional) nama.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first row
sheet.deleteRow(1);
23
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
72The column position.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first row
sheet.deleteRow(1);
28
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
72The row position

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
_81 — Gambar yang disisipkan

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Rows start at "1" - this deletes the first row sheet.deleteRow(1);_79

Menyisipkan

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_03 sebagai gambar dalam dokumen pada baris dan kolom tertentu, dengan offset piksel. Ukuran gambar diambil dari isi blob. Ukuran gumpalan maksimum yang didukung adalah 2 MB

// The code below deletes the currently active sheet and stores the new active sheet in a
// variable
var newSheet = SpreadsheetApp.getActiveSpreadsheet().deleteActiveSheet();
0

Parameter

NameTypeDescription
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first row
sheet.deleteRow(1);
70________470______71Blob yang berisi konten gambar, tipe MIME, dan (opsional) nama.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first row
sheet.deleteRow(1);
23
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
72The column position.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first row
sheet.deleteRow(1);
28
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
72The row position.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first row
sheet.deleteRow(1);
87
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
72Offset horizontal dari sudut sel dalam piksel.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first row
sheet.deleteRow(1);
_89
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
72Offset vertikal dari sudut sel dalam piksel

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
_81 — Gambar yang disisipkan

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Rows start at "1" - this deletes the first row sheet.deleteRow(1);_94

Menyisipkan gambar dalam dokumen pada baris dan kolom tertentu

// The code below deletes the currently active sheet and stores the new active sheet in a
// variable
var newSheet = SpreadsheetApp.getActiveSpreadsheet().deleteActiveSheet();
_1

Parameter

NameTypeDeskripsi
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first row
sheet.deleteRow(1);
95
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
97URL gambar.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first row
sheet.deleteRow(1);
_23
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
72Posisi kolom grid.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first row
sheet.deleteRow(1);
_28
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
72Posisi baris grid

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
_81 — Gambar yang disisipkan

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Rows start at "1" - this deletes the first two rows sheet.deleteRows(1, 2);_04

Menyisipkan gambar dalam dokumen pada baris dan kolom tertentu, dengan offset piksel

// The code below deletes the currently active sheet and stores the new active sheet in a
// variable
var newSheet = SpreadsheetApp.getActiveSpreadsheet().deleteActiveSheet();
2

Parameter

NameTypeDescription
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first row
sheet.deleteRow(1);
95
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
97URL untuk gambar.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first row
sheet.deleteRow(1);
23
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
72The column position.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first row
sheet.deleteRow(1);
28
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
72The row position.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first row
sheet.deleteRow(1);
87
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
72Offset horizontal dari sudut sel dalam piksel.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first row
sheet.deleteRow(1);
_89
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
72Offset vertikal dari sudut sel dalam piksel

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
_81 — Gambar yang Disisipkan

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Rows start at "1" - this deletes the first two rows sheet.deleteRows(1, 2);_18

Menyisipkan baris setelah posisi baris yang diberikan

// The code below deletes the currently active sheet and stores the new active sheet in a
// variable
var newSheet = SpreadsheetApp.getActiveSpreadsheet().deleteActiveSheet();
_3

Parameter

NameTypeDescription
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first row
sheet.deleteRow(1);
33
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
72Baris setelah baris baru harus ditambahkan

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_31 — sheet, berguna untuk metode chaining

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Rows start at "1" - this deletes the first two rows sheet.deleteRows(1, 2);_24

Menyisipkan baris sebelum posisi baris yang diberikan

// The code below deletes the currently active sheet and stores the new active sheet in a
// variable
var newSheet = SpreadsheetApp.getActiveSpreadsheet().deleteActiveSheet();
_4

Parameter

NameTypeDescription
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first row
sheet.deleteRow(1);
39
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
72Baris sebelum baris baru harus ditambahkan

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_31 — sheet, berguna untuk metode chaining

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Rows start at "1" - this deletes the first two rows sheet.deleteRows(1, 2);_30

Menyisipkan sejumlah baris setelah posisi baris yang diberikan

// The code below deletes the currently active sheet and stores the new active sheet in a
// variable
var newSheet = SpreadsheetApp.getActiveSpreadsheet().deleteActiveSheet();
5

Parameter

NameTypeDescription
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first row
sheet.deleteRow(1);
33
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
72Baris setelah baris baru harus ditambahkan.
// The code below deletes the currently active sheet and stores the new active sheet in a
// variable
var newSheet = SpreadsheetApp.getActiveSpreadsheet().deleteActiveSheet();
59
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
72Jumlah baris yang akan disisipkan

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_31 — sheet, berguna untuk metode chaining

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Rows start at "1" - this deletes the first two rows sheet.deleteRows(1, 2);38

Menyisipkan sejumlah baris sebelum posisi baris yang diberikan

// The code below deletes the currently active sheet and stores the new active sheet in a
// variable
var newSheet = SpreadsheetApp.getActiveSpreadsheet().deleteActiveSheet();
_6

Parameter

NameTypeDescription
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first row
sheet.deleteRow(1);
39
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
72Baris sebelum baris baru harus ditambahkan.
// The code below deletes the currently active sheet and stores the new active sheet in a
// variable
var newSheet = SpreadsheetApp.getActiveSpreadsheet().deleteActiveSheet();
59
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
72Jumlah baris yang akan disisipkan

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_31 — sheet, berguna untuk metode chaining

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Rows start at "1" - this deletes the first two rows sheet.deleteRows(1, 2);_46

Menyisipkan sheet baru ke dalam spreadsheet, menggunakan nama sheet default. Sheet baru menjadi sheet aktif

// The code below deletes the currently active sheet and stores the new active sheet in a
// variable
var newSheet = SpreadsheetApp.getActiveSpreadsheet().deleteActiveSheet();
_7

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_31 — Lembar baru

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Rows start at "1" - this deletes the first two rows sheet.deleteRows(1, 2);_50

Menyisipkan lembar baru ke dalam spreadsheet pada indeks yang diberikan. Sheet baru menjadi sheet aktif

// The code below deletes the currently active sheet and stores the new active sheet in a
// variable
var newSheet = SpreadsheetApp.getActiveSpreadsheet().deleteActiveSheet();
_8

Parameter

NameTypeDescription
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first two rows
sheet.deleteRows(1, 2);
51
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
72Indeks sheet yang baru dibuat. Untuk menyisipkan sheet sebagai yang pertama di spreadsheet, setel ke 0

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_31 — Lembar baru

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Rows start at "1" - this deletes the first two rows sheet.deleteRows(1, 2);_56

Memasukkan sheet baru ke dalam spreadsheet pada indeks yang diberikan dan menggunakan argumen lanjutan opsional. Sheet baru menjadi sheet aktif

// The code below deletes the currently active sheet and stores the new active sheet in a
// variable
var newSheet = SpreadsheetApp.getActiveSpreadsheet().deleteActiveSheet();
_9

Parameter

NameTypeDescription
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first two rows
sheet.deleteRows(1, 2);
51
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
72Indeks sheet yang baru dibuat. Untuk menyisipkan sheet sebagai yang pertama di spreadsheet, setel ke 0.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first two rows
sheet.deleteRows(1, 2);
59
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first two rows
sheet.deleteRows(1, 2);
60Optional JavaScript advanced arguments

Parameter lanjutan

NameTypeDescription
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first two rows
sheet.deleteRows(1, 2);
61
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
31Semua data dari objek lembar template disalin ke lembar baru. Templat sheet harus berupa salah satu sheet dari objek Spreadsheet

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_31 — Lembar baru

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Rows start at "1" - this deletes the first two rows sheet.deleteRows(1, 2);_66

Menyisipkan sheet baru ke dalam spreadsheet, menggunakan nama sheet default dan argumen lanjutan opsional. Sheet baru menjadi sheet aktif

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Columns start at "1" - this deletes the first column
sheet.deleteColumn(1);
_0

Parameter

NameTypeDescription
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first two rows
sheet.deleteRows(1, 2);
59
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first two rows
sheet.deleteRows(1, 2);
60Argumen lanjutan JavaScript opsional, tercantum di bawah

Parameter lanjutan

NameTypeDescription
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first two rows
sheet.deleteRows(1, 2);
61
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
31Semua data dari objek lembar template disalin ke lembar baru. Template sheet harus berupa salah satu sheet dari objek Spreadsheet ini

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_31 — Lembar baru

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Rows start at "1" - this deletes the first two rows sheet.deleteRows(1, 2);74

Inserts a new sheet into the spreadsheet with the given name. The new sheet becomes the active sheet

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Columns start at "1" - this deletes the first column
sheet.deleteColumn(1);
1

Parameter

NameTypeDescription
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first two rows
sheet.deleteRows(1, 2);
75
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
97The name of the new sheet

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_31 — Lembar baru

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Rows start at "1" - this deletes the first two rows sheet.deleteRows(1, 2);80

Inserts a new sheet into the spreadsheet with the given name at the given index. The new sheet becomes the active sheet

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Columns start at "1" - this deletes the first column
sheet.deleteColumn(1);
2

Parameter

NameTypeDescription
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first two rows
sheet.deleteRows(1, 2);
75
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
97The name of the new sheet.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first two rows
sheet.deleteRows(1, 2);
51
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
72The index of the newly created sheet. To insert a sheet as the first one in the spreadsheet, set it to 0

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_31 — Lembar baru

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Rows start at "1" - this deletes the first two rows sheet.deleteRows(1, 2);88

Inserts a new sheet into the spreadsheet with the given name at the given index and uses optional advanced arguments. The new sheet becomes the active sheet

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Columns start at "1" - this deletes the first column
sheet.deleteColumn(1);
3

Parameter

NameTypeDescription
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first two rows
sheet.deleteRows(1, 2);
75
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
97The name of the new sheet.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first two rows
sheet.deleteRows(1, 2);
51
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
72The index of the newly inserted sheet. To insert a sheet as the first one in a spreadsheet, set it to 0.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first two rows
sheet.deleteRows(1, 2);
59
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first two rows
sheet.deleteRows(1, 2);
60Optional JavaScript advanced arguments

Parameter lanjutan

NameTypeDescription
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first two rows
sheet.deleteRows(1, 2);
61
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
31Semua data dari objek lembar template disalin ke lembar baru. Templat sheet harus berupa salah satu sheet dari objek Spreadsheet

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_31 — Lembar baru

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Appends a new row with 3 columns to the bottom of the current // data region in the sheet containing the values in the array. sheet.appendRow(["a man", "a plan", "panama"]);000

Inserts a new sheet into the spreadsheet with the given name and uses optional advanced arguments. The new sheet becomes the active sheet

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Columns start at "1" - this deletes the first column
sheet.deleteColumn(1);
4

Parameter

NameTypeDescription
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first two rows
sheet.deleteRows(1, 2);
75
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
97The name of the new sheet.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first two rows
sheet.deleteRows(1, 2);
59
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first two rows
sheet.deleteRows(1, 2);
60Optional JavaScript advanced arguments

Parameter lanjutan

NameTypeDescription
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first two rows
sheet.deleteRows(1, 2);
61
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
31Semua data dari objek lembar template disalin ke lembar baru. Templat sheet harus berupa salah satu sheet dari objek Spreadsheet

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_31 — Lembar baru

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Appends a new row with 3 columns to the bottom of the current // data region in the sheet containing the values in the array. sheet.appendRow(["a man", "a plan", "panama"]);010

Inserts a new sheet in the spreadsheet, creates a

// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
16 spanning the entire sheet with the given data source specification, and starts data execution. As a side effect, makes the new sheet the active sheet

Mengeluarkan pengecualian jika jenis sumber data tidak diaktifkan. Gunakan metode

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first row
sheet.deleteRow(1);
_62 untuk mengaktifkan eksekusi data untuk jenis sumber data tertentu

Parameter

NameTypeDescription
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first row
sheet.deleteRow(1);
63
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first row
sheet.deleteRow(1);
64Spesifikasi sumber data yang akan disisipkan

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_31 — Lembar baru

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Appends a new row with 3 columns to the bottom of the current // data region in the sheet containing the values in the array. sheet.appendRow(["a man", "a plan", "panama"]);018

Returns whether the given column is hidden by the user

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Columns start at "1" - this deletes the first column
sheet.deleteColumn(1);
5

Parameter

NameTypeDescription
// The code below deletes the currently active sheet and stores the new active sheet in a
// variable
var newSheet = SpreadsheetApp.getActiveSpreadsheet().deleteActiveSheet();
27
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
72Posisi kolom yang akan diperiksa

Kembali

// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
18 —
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
022 if the column is hidden,
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
023 otherwise

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Appends a new row with 3 columns to the bottom of the current // data region in the sheet containing the values in the array. sheet.appendRow(["a man", "a plan", "panama"]);026

Returns whether iterative calculation is enabled in this spreadsheet

Kembali

// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
18 —
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
022 if iterative calculation is enabled,
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
023 otherwise

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Appends a new row with 3 columns to the bottom of the current // data region in the sheet containing the values in the array. sheet.appendRow(["a man", "a plan", "panama"]);032

Returns whether the given row is hidden by a filter (not a filter view)

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Columns start at "1" - this deletes the first column
sheet.deleteColumn(1);
6

Parameter

NameTypeDescription
// The code below deletes the currently active sheet and stores the new active sheet in a
// variable
var newSheet = SpreadsheetApp.getActiveSpreadsheet().deleteActiveSheet();
64
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
72Posisi baris yang akan diperiksa

Kembali

// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
18 —
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
022 if the row is hidden,
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
023 otherwise

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Appends a new row with 3 columns to the bottom of the current // data region in the sheet containing the values in the array. sheet.appendRow(["a man", "a plan", "panama"]);040

Returns whether the given row is hidden by the user

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Columns start at "1" - this deletes the first column
sheet.deleteColumn(1);
7

Parameter

NameTypeDescription
// The code below deletes the currently active sheet and stores the new active sheet in a
// variable
var newSheet = SpreadsheetApp.getActiveSpreadsheet().deleteActiveSheet();
64
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
72Posisi baris yang akan diperiksa

Kembali

// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
18 —
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
022 if the row is hidden,
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
023 otherwise

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Appends a new row with 3 columns to the bottom of the current // data region in the sheet containing the values in the array. sheet.appendRow(["a man", "a plan", "panama"]);048

Moves the active sheet to the given position in the list of sheets. Throws an exception if the position is negative or greater than the number of sheets

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Columns start at "1" - this deletes the first column
sheet.deleteColumn(1);
8

Parameter

NameTypeDescription
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
049
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
72The 1-index position to move the active sheet to in the list of sheets

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Appends a new row with 3 columns to the bottom of the current // data region in the sheet containing the values in the array. sheet.appendRow(["a man", "a plan", "panama"]);053

Creates a new

// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
29 sheet and moves the provided chart to it. If the chart is already on its own sheet, that sheet is returned without creating a new one

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Columns start at "1" - this deletes the first column
sheet.deleteColumn(1);
9

Parameter

NameTypeDescription
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
055
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
056The chart to move

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
31 — The sheet that the chart is on

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Appends a new row with 3 columns to the bottom of the current // data region in the sheet containing the values in the array. sheet.appendRow(["a man", "a plan", "panama"]);060

Refreshes all supported data sources and their linked data source objects, skipping invalid data source objects

Use

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first row
sheet.deleteRow(1);
62 methods to enable data execution for specific data source type

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Appends a new row with 3 columns to the bottom of the current // data region in the sheet containing the values in the array. sheet.appendRow(["a man", "a plan", "panama"]);064

Removes the given user from the list of editors for the

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03. This method doesn't block users from accessing the
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03 if they belong to a class of users who have general access—for example, if the
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03 is shared with the user's entire domain, or if the
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03 is in a shared drive that the user can access

For Drive files, this also removes the user from the list of viewers

Parameter

NameTypeDescription
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();

// Creates  a text finder.
var textFinder = spreadsheet.createTextFinder('dog');

// Returns the first occurrence of 'dog' in the spreadsheet.
var firstOccurrence = textFinder.findNext();

// Replaces the last found occurrence of 'dog' with 'cat' and returns the number
// of occurrences replaced.
var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
63
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
97The email address of the user to remove

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03 — Ini
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03, untuk merangkai

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Appends a new row with 3 columns to the bottom of the current // data region in the sheet containing the values in the array. sheet.appendRow(["a man", "a plan", "panama"]);075

Removes the given user from the list of editors for the

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03. This method doesn't block users from accessing the
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03 if they belong to a class of users who have general access—for example, if the
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03 is shared with the user's entire domain, or if the
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03 is in a shared drive that the user can access

For Drive files, this also removes the user from the list of viewers

Parameter

NameTypeDescription
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();

// Creates  a text finder.
var textFinder = spreadsheet.createTextFinder('dog');

// Returns the first occurrence of 'dog' in the spreadsheet.
var firstOccurrence = textFinder.findNext();

// Replaces the last found occurrence of 'dog' with 'cat' and returns the number
// of occurrences replaced.
var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
71
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
22A representation of the user to remove

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03 — Ini
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03, untuk merangkai

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Appends a new row with 3 columns to the bottom of the current // data region in the sheet containing the values in the array. sheet.appendRow(["a man", "a plan", "panama"]);086

Removes a menu that was added by

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
19. The
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();

// Creates  a text finder.
var textFinder = spreadsheet.createTextFinder('dog');

// Returns the first occurrence of 'dog' in the spreadsheet.
var firstOccurrence = textFinder.findNext();

// Replaces the last found occurrence of 'dog' with 'cat' and returns the number
// of occurrences replaced.
var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
87 argument should have the same value as the corresponding call to
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
19

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Columns start at "1" - this deletes the first two columns
sheet.deleteColumns(1, 2);
0

Parameter

NameTypeDescription
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();

// Creates  a text finder.
var textFinder = spreadsheet.createTextFinder('dog');

// Returns the first occurrence of 'dog' in the spreadsheet.
var firstOccurrence = textFinder.findNext();

// Replaces the last found occurrence of 'dog' with 'cat' and returns the number
// of occurrences replaced.
var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
87
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
97The name of the menu to remove

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Appends a new row with 3 columns to the bottom of the current // data region in the sheet containing the values in the array. sheet.appendRow(["a man", "a plan", "panama"]);094

Deletes a named range with the given name. Throws an exception if no range with the given name is found in the spreadsheet

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Columns start at "1" - this deletes the first two columns
sheet.deleteColumns(1, 2);
1

Parameter

NameTypeDescription
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();

// Creates  a text finder.
var textFinder = spreadsheet.createTextFinder('dog');

// Returns the first occurrence of 'dog' in the spreadsheet.
var firstOccurrence = textFinder.findNext();

// Replaces the last found occurrence of 'dog' with 'cat' and returns the number
// of occurrences replaced.
var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
87
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
97The range name

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Appends a new row with 3 columns to the bottom of the current // data region in the sheet containing the values in the array. sheet.appendRow(["a man", "a plan", "panama"]);099

Removes the given user from the list of viewers and commenters for the

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03. This method has no effect if the user is an editor, not a viewer or commenter. This method also doesn't block users from accessing the
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03 if they belong to a class of users who have general access—for example, if the
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03 is shared with the user's entire domain, or if the
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03 is in a shared drive that the user can access

For Drive files, this also removes the user from the list of editors

Parameter

NameTypeDescription
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();

// Creates  a text finder.
var textFinder = spreadsheet.createTextFinder('dog');

// Returns the first occurrence of 'dog' in the spreadsheet.
var firstOccurrence = textFinder.findNext();

// Replaces the last found occurrence of 'dog' with 'cat' and returns the number
// of occurrences replaced.
var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
63
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
97The email address of the user to remove

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03 — This
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03 for chaining

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Appends a new row with 3 columns to the bottom of the current // data region in the sheet containing the values in the array. sheet.appendRow(["a man", "a plan", "panama"]);110

Removes the given user from the list of viewers and commenters for the

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03. This method has no effect if the user is an editor, not a viewer. This method also doesn't block users from accessing the
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03 if they belong to a class of users who have general access—for example, if the
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03 is shared with the user's entire domain, or if the
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03 is in a shared drive that the user can access

For Drive files, this also removes the user from the list of editors

Parameter

NameTypeDescription
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();

// Creates  a text finder.
var textFinder = spreadsheet.createTextFinder('dog');

// Returns the first occurrence of 'dog' in the spreadsheet.
var firstOccurrence = textFinder.findNext();

// Replaces the last found occurrence of 'dog' with 'cat' and returns the number
// of occurrences replaced.
var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
71
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
22A representation of the user to remove

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03 — This
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
03 for chaining

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Appends a new row with 3 columns to the bottom of the current // data region in the sheet containing the values in the array. sheet.appendRow(["a man", "a plan", "panama"]);121

Renames the document

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Columns start at "1" - this deletes the first two columns
sheet.deleteColumns(1, 2);
2

Parameter

NameTypeDescription
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
122
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
97The new name for the document

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Appends a new row with 3 columns to the bottom of the current // data region in the sheet containing the values in the array. sheet.appendRow(["a man", "a plan", "panama"]);126

Renames the current active sheet to the given new name

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Columns start at "1" - this deletes the first two columns
sheet.deleteColumns(1, 2);
3

Parameter

NameTypeDescription
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
122
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
97The new name for the current active sheet

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Appends a new row with 3 columns to the bottom of the current // data region in the sheet containing the values in the array. sheet.appendRow(["a man", "a plan", "panama"]);131

Removes the applied theme and sets the default theme on the spreadsheet

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Columns start at "1" - this deletes the first two columns
sheet.deleteColumns(1, 2);
4

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
56 — The default theme

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Appends a new row with 3 columns to the bottom of the current // data region in the sheet containing the values in the array. sheet.appendRow(["a man", "a plan", "panama"]);135

Sets the specified range as the

// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
57 in the active sheet, with the top left cell in the range as the
// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
58

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Columns start at "1" - this deletes the first two columns
sheet.deleteColumns(1, 2);
5

Parameter

NameTypeDescription
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
138
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
56The range to set as the active range

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
56 — the newly active range

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Appends a new row with 3 columns to the bottom of the current // data region in the sheet containing the values in the array. sheet.appendRow(["a man", "a plan", "panama"]);143

Sets the specified list of ranges as the

// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
61 in the active sheet. The last range in the list is set as the
// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
57

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Columns start at "1" - this deletes the first two columns
sheet.deleteColumns(1, 2);
6

Parameter

NameTypeDescription
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
146
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
61The list of ranges to select

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_61 — daftar rentang yang baru dipilih

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Appends a new row with 3 columns to the bottom of the current // data region in the sheet containing the values in the array. sheet.appendRow(["a man", "a plan", "panama"]);_151

Menetapkan wilayah pemilihan aktif untuk sheet ini

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Columns start at "1" - this deletes the first two columns
sheet.deleteColumns(1, 2);
_7

Parameter

NameTypeDescription
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
138
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
56Rentang untuk ditetapkan sebagai pilihan aktif

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
56 — the newly active range

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Appends a new row with 3 columns to the bottom of the current // data region in the sheet containing the values in the array. sheet.appendRow(["a man", "a plan", "panama"]);_157

Mengatur pilihan aktif, seperti yang ditentukan dalam notasi A1 atau notasi R1C1

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Columns start at "1" - this deletes the first two columns
sheet.deleteColumns(1, 2);
_8

Parameter

NameTypeDescription
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Columns start at "1" - this deletes the first two columns
sheet.deleteColumns(1, 2);
35
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
97Rentang untuk ditetapkan sebagai aktif, sebagaimana ditentukan dalam notasi A1 atau notasi R1C1

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
56 — the newly active range

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Appends a new row with 3 columns to the bottom of the current // data region in the sheet containing the values in the array. sheet.appendRow(["a man", "a plan", "panama"]);_163

Menyetel sheet yang diberikan menjadi sheet aktif di spreadsheet. The Google Sheets UI displays the chosen sheet unless the sheet belongs to a different spreadsheet

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Columns start at "1" - this deletes the first two columns
sheet.deleteColumns(1, 2);
_9

Parameter

NameTypeDescription
// The code below deletes the currently active sheet and stores the new active sheet in a
// variable
var newSheet = SpreadsheetApp.getActiveSpreadsheet().deleteActiveSheet();
77________0______31Sheet yang akan ditetapkan sebagai sheet aktif

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_31 — Lembar aktif

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Appends a new row with 3 columns to the bottom of the current // data region in the sheet containing the values in the array. sheet.appendRow(["a man", "a plan", "panama"]);_169

Setel lembar yang diberikan menjadi lembar aktif di spreadsheet, dengan opsi untuk mengembalikan pilihan terbaru dalam lembar itu. The Google Sheets UI displays the chosen sheet unless the sheet belongs to a different spreadsheet

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first row
sheet.deleteRow(1);
0

Parameter

NameTypeDescription
// The code below deletes the currently active sheet and stores the new active sheet in a
// variable
var newSheet = SpreadsheetApp.getActiveSpreadsheet().deleteActiveSheet();
77
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
31The new active sheet.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
172
// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
18Tf
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
022, the most recent selection of the new active sheet becomes selected again as the new sheet becomes active; if
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
023, the new sheet becomes active without changing the current selection

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_31 — Lembar aktif baru

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Appends a new row with 3 columns to the bottom of the current // data region in the sheet containing the values in the array. sheet.appendRow(["a man", "a plan", "panama"]);179

Sets the width of the given column in pixels

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first row
sheet.deleteRow(1);
1

Parameter

NameTypeDescription
// The code below deletes the currently active sheet and stores the new active sheet in a
// variable
var newSheet = SpreadsheetApp.getActiveSpreadsheet().deleteActiveSheet();
27
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
72The position of the given column to set.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
182
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
72The width in pixels to set it to

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_31 — sheet, berguna untuk metode chaining

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Appends a new row with 3 columns to the bottom of the current // data region in the sheet containing the values in the array. sheet.appendRow(["a man", "a plan", "panama"]);187

Sets the specified cell as the

// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
58

If the specified cell is present in an already selected range, then that range becomes the active range with the cell as the current cell

If the specified cell is not present in any selected range, then any existing selection is removed and the cell becomes the current cell and the active range

Note. The specified

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
56 must consist of one cell, otherwise it throws an exception

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first row
sheet.deleteRow(1);
2

Parameter

NameTypeDescription
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
190
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
56The cell to set as the current cell

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
56 — the newly set current cell

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Appends a new row with 3 columns to the bottom of the current // data region in the sheet containing the values in the array. sheet.appendRow(["a man", "a plan", "panama"]);195

Freezes the given number of columns. If zero, no columns are frozen

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first row
sheet.deleteRow(1);
3

Parameter

NameTypeDescription
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
196
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
72The number of columns to freeze

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Appends a new row with 3 columns to the bottom of the current // data region in the sheet containing the values in the array. sheet.appendRow(["a man", "a plan", "panama"]);200

Freezes the given number of rows. If zero, no rows are frozen

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first row
sheet.deleteRow(1);
4

Parameter

NameTypeDescription
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
201
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
72The number of rows to freeze

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Appends a new row with 3 columns to the bottom of the current // data region in the sheet containing the values in the array. sheet.appendRow(["a man", "a plan", "panama"]);205

Sets the minimum threshold value for iterative calculation. When the results of successive calculation differ by less than this value, the iterative calculation stops. This value must be non-negative, and defaults to 0. 05

Parameter

NameTypeDescription
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
206
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
08The minimum convergence threshold (must be non-negative)

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_03 — Spreadsheet ini, untuk chaining

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Appends a new row with 3 columns to the bottom of the current // data region in the sheet containing the values in the array. sheet.appendRow(["a man", "a plan", "panama"]);211

Sets whether iterative calculation is enabled in this spreadsheet. If the maximum number of calculation cycles and convergence threshold have not previously been set when the calculation is enabled, they default to 50 and 0. 05 respectively. If either has been set previously, they retain their previous values

Parameter

NameTypeDescription
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
212
// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
18
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
022 if iterative calculation should be enabled;
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
023 otherwise

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_03 — Spreadsheet ini, untuk chaining

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Appends a new row with 3 columns to the bottom of the current // data region in the sheet containing the values in the array. sheet.appendRow(["a man", "a plan", "panama"]);219

Sets the maximum number of calculation iterations that should be performed during iterative calculation. This value must be between 1 and 10,000 (inclusive), and defaults to 50

Parameter

NameTypeDescription
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
220
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
72The maximum number of calculation iterations (between 1 and 10,000)

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_03 — Spreadsheet ini, untuk chaining

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Appends a new row with 3 columns to the bottom of the current // data region in the sheet containing the values in the array. sheet.appendRow(["a man", "a plan", "panama"]);225

Names a range

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first row
sheet.deleteRow(1);
5

Parameter

NameTypeDescription
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();

// Creates  a text finder.
var textFinder = spreadsheet.createTextFinder('dog');

// Returns the first occurrence of 'dog' in the spreadsheet.
var firstOccurrence = textFinder.findNext();

// Replaces the last found occurrence of 'dog' with 'cat' and returns the number
// of occurrences replaced.
var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
87
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
97The name to give the range.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
138
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
56The range specification

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Appends a new row with 3 columns to the bottom of the current // data region in the sheet containing the values in the array. sheet.appendRow(["a man", "a plan", "panama"]);232

Sets how often this spreadsheet should recalculate

Parameter

NameTypeDescription
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
233
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
37The new recalculation interval

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_03 — Spreadsheet ini, untuk chaining

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Appends a new row with 3 columns to the bottom of the current // data region in the sheet containing the values in the array. sheet.appendRow(["a man", "a plan", "panama"]);238

Sets the row height of the given row in pixels. By default, rows grow to fit cell contents. If you want to force rows to a specified height, use

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
239

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first row
sheet.deleteRow(1);
6

Parameter

NameTypeDescription
// The code below deletes the currently active sheet and stores the new active sheet in a
// variable
var newSheet = SpreadsheetApp.getActiveSpreadsheet().deleteActiveSheet();
64
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
72The row position to change.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
242
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
72The height in pixels to set it to

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_31 — Sheet, berguna untuk metode chaining

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Appends a new row with 3 columns to the bottom of the current // data region in the sheet containing the values in the array. sheet.appendRow(["a man", "a plan", "panama"]);247

Sets the spreadsheet locale

Parameter

NameTypeDescription
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
248
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
97The locale code to use (for example, 'en', 'fr', or 'en_US')

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Appends a new row with 3 columns to the bottom of the current // data region in the sheet containing the values in the array. sheet.appendRow(["a man", "a plan", "panama"]);252

Sets a theme on the spreadsheet

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first row
sheet.deleteRow(1);
7

Parameter

NameTypeDescription
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
253
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
56The theme to apply

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
56 — The new current theme

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Appends a new row with 3 columns to the bottom of the current // data region in the sheet containing the values in the array. sheet.appendRow(["a man", "a plan", "panama"]);258

Sets the time zone for the spreadsheet

Parameter

NameTypeDescription
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
259
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
97The time zone, specified in "long" format (for example, "America/New_York", as listed by Joda. org)

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Appends a new row with 3 columns to the bottom of the current // data region in the sheet containing the values in the array. sheet.appendRow(["a man", "a plan", "panama"]);263

Displays a custom user interface component in a dialog centered in the user's browser's viewport. The server-side script's execution is not suspended. To communicate with the server side, the user interface component must make asynchronous callbacks to the server-side script

If the server-side script previously displayed a dialog that has not yet been dismissed, then the existing dialog is replaced with the newly requested dialog's user interface

The following code snippet displays a simple

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
264 application in a dialog with the specified title, height, and width

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first row
sheet.deleteRow(1);
8

Parameter

NameTypeDescription
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
265
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first two rows
sheet.deleteRows(1, 2);
60An
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
267

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var ss = SpreadsheetApp.getActiveSpreadsheet();
    var sheet = ss.getSheets()[0];
    
    // Appends a new row with 3 columns to the bottom of the current
    // data region in the sheet containing the values in the array.
    sheet.appendRow(["a man", "a plan", "panama"]);
    268


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Appends a new row with 3 columns to the bottom of the current // data region in the sheet containing the values in the array. sheet.appendRow(["a man", "a plan", "panama"]);269

Sorts a sheet by column, ascending

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first row
sheet.deleteRow(1);
9

Parameter

NameTypeDescription
// The code below deletes the currently active sheet and stores the new active sheet in a
// variable
var newSheet = SpreadsheetApp.getActiveSpreadsheet().deleteActiveSheet();
27
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
72The column to sort by

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_31 — sheet, berguna untuk metode chaining

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Appends a new row with 3 columns to the bottom of the current // data region in the sheet containing the values in the array. sheet.appendRow(["a man", "a plan", "panama"]);_275

Sorts a sheet by column. Takes a parameter to specify ascending or descending

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first two rows
sheet.deleteRows(1, 2);
0

Parameter

NameTypeDescription
// The code below deletes the currently active sheet and stores the new active sheet in a
// variable
var newSheet = SpreadsheetApp.getActiveSpreadsheet().deleteActiveSheet();
27
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
72The column to sort by.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
278
// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
18
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
022 for ascending sorts,
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
023 for descending

Kembali

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_31 — sheet, berguna untuk metode chaining

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Appends a new row with 3 columns to the bottom of the current // data region in the sheet containing the values in the array. sheet.appendRow(["a man", "a plan", "panama"]);285

Shows a popup window in the lower right corner of the spreadsheet with the given message

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first two rows
sheet.deleteRows(1, 2);
1

Parameter

NameTypeDescription
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
286
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
97The message to be shown in the toast

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Appends a new row with 3 columns to the bottom of the current // data region in the sheet containing the values in the array. sheet.appendRow(["a man", "a plan", "panama"]);290

Shows a popup window in the lower right corner of the spreadsheet with the given message and title

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first two rows
sheet.deleteRows(1, 2);
2

Parameter

NameTypeDescription
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
286
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
97The message to be shown in the toast.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
293
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
97The optional title of the toast

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Appends a new row with 3 columns to the bottom of the current // data region in the sheet containing the values in the array. sheet.appendRow(["a man", "a plan", "panama"]);297

Shows a popup window in the lower right corner of the spreadsheet with the given title and message, that stays visible for a certain length of time

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first two rows
sheet.deleteRows(1, 2);
3

Parameter

NameTypeDescription
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
286
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
97The message to be shown in the toast.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
293
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
97The optional title of the toast.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
302
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);
08The timeout in seconds; if
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
59, the toast defaults to 5 seconds; if negative, the toast remains until dismissed

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Appends a new row with 3 columns to the bottom of the current // data region in the sheet containing the values in the array. sheet.appendRow(["a man", "a plan", "panama"]);307

Unhides the column in the given range

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first two rows
sheet.deleteRows(1, 2);
_4

Parameter

NameTypeDescription
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first row
sheet.deleteRow(1);
23
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
56The range to unhide, if hidden

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Appends a new row with 3 columns to the bottom of the current // data region in the sheet containing the values in the array. sheet.appendRow(["a man", "a plan", "panama"]);312

Unhides the row in the given range

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first two rows
sheet.deleteRows(1, 2);
5

Parameter

NameTypeDescription
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first row
sheet.deleteRow(1);
28
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
56The range to unhide, if hidden

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Appends a new row with 3 columns to the bottom of the current // data region in the sheet containing the values in the array. sheet.appendRow(["a man", "a plan", "panama"]);317

Updates a menu that was added by

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
19. Works exactly like
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
19

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// Rows start at "1" - this deletes the first two rows
sheet.deleteRows(1, 2);
6

Parameter

NameTypeDescription
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();

// Creates  a text finder.
var textFinder = spreadsheet.createTextFinder('dog');

// Returns the first occurrence of 'dog' in the spreadsheet.
var firstOccurrence = textFinder.findNext();

// Replaces the last found occurrence of 'dog' with 'cat' and returns the number
// of occurrences replaced.
var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
87
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
97Nama menu yang akan diperbarui. ________299
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
_299_______90Sebuah array peta JavaScript dengan
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();

// Creates  a text finder.
var textFinder = spreadsheet.createTextFinder('dog');

// Returns the first occurrence of 'dog' in the spreadsheet.
var firstOccurrence = textFinder.findNext();

// Replaces the last found occurrence of 'dog' with 'cat' and returns the number
// of occurrences replaced.
var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
87 dan ________299______92 parameter. You can use functions from included libraries, such as
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();

// Creates  a text finder.
var textFinder = spreadsheet.createTextFinder('dog');

// Returns the first occurrence of 'dog' in the spreadsheet.
var firstOccurrence = textFinder.findNext();

// Replaces the last found occurrence of 'dog' with 'cat' and returns the number
// of occurrences replaced.
var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
93

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Appends a new row with 3 columns to the bottom of the current // data region in the sheet containing the values in the array. sheet.appendRow(["a man", "a plan", "panama"]);_329

Waits until all the current executions in the spreadsheet complete, timing out after the provided number of seconds. Throws an exception if the executions are not completed when timing out, but does not cancel the data executions

Parameter

NameTypeDescription
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
330
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
72The time to wait for data executions, in seconds. The maximum is 300 seconds

Otorisasi

Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa hal berikut

  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _33
  • var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    
    // Creates  a text finder.
    var textFinder = spreadsheet.createTextFinder('dog');
    
    // Returns the first occurrence of 'dog' in the spreadsheet.
    var firstOccurrence = textFinder.findNext();
    
    // Replaces the last found occurrence of 'dog' with 'cat' and returns the number
    // of occurrences replaced.
    var numOccurrencesReplaced = findOccurrence.replaceWith('cat');
    _34

Metode yang tidak digunakan lagi

var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Appends a new row with 3 columns to the bottom of the current // data region in the sheet containing the values in the array. sheet.appendRow(["a man", "a plan", "panama"]);334

Deprecated. For spreadsheets created in the newer version of Google Sheets, use

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
372, which returns the more powerful
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns to the bottom of the current
// data region in the sheet containing the values in the array.
sheet.appendRow(["a man", "a plan", "panama"]);
336 class. Although this method is deprecated, it remains available for compatibility with the older version of Sheets

How do you reference the current cell in Google Sheets?

6 Answers .
Check that the cell in 2nd row of current column row is today. =A$2=TODAY()
Combine using AND operator. =AND(A$2=TODAY(), A4="")

How do I get the active cell value in Google Sheets?

Get selected cell value in your Google Sheet Script First, let us add a menu item to your Google sheet so that it is easy for us to try the functions. Now we have to add getCurrentCellValue() function . This function will get the value of the currently selected cell and then show it in a message box.

How do you check if a value is in a range of cells Google Sheets?

We can use the COUNTIF function to count the number of times a value appears in a range . If COUNTIF returns greater than 0, that means that value exists. By attaching “>0” to the end of the COUNTIF Function, we test if the function returns >0. If so, the formula returns TRUE (the value exists).

How do I get the current row in Google Sheets?

The ROW function in Google Sheets returns the row number of a given cell. For example, if you want to know what row number the cell A1 is in, you would use the function =ROW(A1) . Fungsi ini sangat berguna saat Anda bekerja dengan rumus dan perlu merujuk ke baris atau kolom tertentu.

How do I get the current column in a Google sheet?

Getting Column Index or Column Numbers in Google Sheet Simply enter the editing mode of any cell(by pressing F2) and type “= COLUMN(Cell Reference)” . Referensi sel tidak lain adalah sel yang nomor kolomnya ingin Anda temukan.