Dapatkan nama file google sheets

Akses dan ubah file Google Spreadsheet. Operasi umum adalah menambahkan sheet baru dan menambahkan kolaborator

Show

Metode

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

// Appends a new row with 3 columns 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________0______03Menambahkan metadata pengembang dengan kunci yang ditentukan ke 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"]);
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"]);
03Menambahkan metadata pengembang dengan kunci yang ditentukan dan visibilitas ke 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"]);
03Menambahkan metadata pengembang dengan kunci dan nilai yang ditentukan ke 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"]);
03Menambahkan metadata pengembang dengan kunci, nilai, dan visibilitas tertentu ke 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"]);
03Menambahkan 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"]);
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"]);
03Menambahkan 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"]);
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"]);
20Membuat menu baru di 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"]);
03Menambahkan 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.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns 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"]);
03Menambahkan 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.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns 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"]);
03Menambahkan susunan 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.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns 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"]);
31Menambahkan baris ke bagian bawah wilayah data saat ini di lembar.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns 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"]);
31Mengatur lebar kolom yang diberikan agar sesuai dengan isinya.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns 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"]);
03Menyalin spreadsheet dan mengembalikan yang baru.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns 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"]);
37Mengembalikan
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns 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.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns 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"]);
40Membuat pencari teks untuk spreadsheet, yang dapat digunakan untuk mencari dan mengganti teks di 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"]);
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"]);
31Menghapus sheet yang sedang 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"]);
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"]);
31Menghapus kolom pada posisi 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"]);
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"]);
20Menghapus sejumlah kolom mulai dari posisi 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"]);
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"]);
31Menghapus baris pada posisi baris tertentu.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns 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"]);
20Menghapus sejumlah baris mulai dari posisi baris 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"]);
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"]);
20Menghapus 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"]);
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"]);
56Mengembalikan sel aktif di lembar 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"]);
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"]);
56Mengembalikan rentang yang dipilih 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.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns 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"]);
61Mengembalikan 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.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns 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"]);
66Mengembalikan data di dalam objek ini sebagai gumpalan yang dikonversi ke jenis konten 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"]);
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"]);
20Memindahkan sheet aktif ke posisi yang diberikan dalam daftar sheet.
// 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"]);
31Membuat lembar
// This code makes a copy of the current spreadsheet and names it appropriately
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.copy("Copy of " + ss.getName());
29 baru dan memindahkan bagan yang disediakan ke sana.
// 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"]);
20Memperbarui semua sumber data yang didukung dan objek sumber data tertautnya, melewatkan objek sumber data yang tidak valid.
// 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"]);
03Menghapus pengguna tertentu dari 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.
// 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"]);
03Menghapus pengguna tertentu dari 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.
// 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"]);
20Menghapus 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.
// 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"]);
20Menghapus rentang bernama 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());
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"]);
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());
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 — Metadata pengembang terkait dengan rentang 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);_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 — 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 jika dokumen berada di drive bersama

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 — nama lembar

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. Sebagai efek samping, ini juga menjadikan lembar baru sebagai lembar aktif

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 2MB

var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();

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

// Returns the first occurrence of 'dog' in the spreadsheet.
var 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 2MB

// 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

Menyisipkan lembar baru ke dalam spreadsheet dengan nama yang diberikan. 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);
_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"]);
97Nama sheet 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"]);
_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

Sisipkan lembar baru ke dalam spreadsheet dengan nama yang diberikan pada indeks yang diberikan. 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);
_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"]);
97Nama sheet baru.
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);_88

Menyisipkan lembar baru ke dalam spreadsheet dengan nama yang diberikan pada indeks yang diberikan dan menggunakan 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);
_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"]);
97Nama sheet baru.
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 lembar yang baru dimasukkan. 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]; // Appends a new row with 3 columns 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

Menyisipkan lembar baru ke dalam spreadsheet dengan nama yang diberikan dan menggunakan argumen lanjutan opsional. 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

Refresh semua sumber data yang didukung dan objek sumber data tertautnya, melewati objek sumber data yang tidak valid

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

Menghapus pengguna tertentu dari 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. 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"]);
97Alamat email pengguna yang akan dihapus

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

Menghapus pengguna tertentu dari 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. 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 representasi pengguna untuk dihapus

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

Menghapus 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. Argumen
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();

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

// Returns the first occurrence of 'dog' in the spreadsheet.
var 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 harus memiliki nilai yang sama dengan panggilan terkait ke
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns 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"]);
97Nama menu 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


var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Appends a new row with 3 columns 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

Menghapus rentang bernama dengan nama yang diberikan. Melontarkan pengecualian jika tidak ada rentang dengan nama tertentu yang ditemukan di 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"]);
97Alamat email pengguna yang akan dihapus

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 representasi pengguna untuk dihapus

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 — the newly selected list of ranges

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

Sets the active selection region for this sheet

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"]);
56The range to set as the active 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"]);
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

Sets the active selection, as specified in A1 notation or R1C1 notation

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"]);
97The range to set as active, as specified in A1 notation or R1C1 notation

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

Sets the given sheet to be the active sheet in the 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
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns 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 set as the active 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 — The 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"]);169

Sets the given sheet to be the active sheet in the spreadsheet, with an option to restore the most recent selection within that sheet. 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"]);
97Nama untuk memberikan rentang.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns 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

Tetapkan seberapa sering spreadsheet ini harus menghitung ulang

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"]);
72Posisi baris yang akan diubah.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns 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"]);
72Tinggi dalam piksel untuk menyetelnya

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

Menyetel lokal 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"]);
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"]);
97Kode lokal yang akan digunakan (misalnya, 'en', 'fr', atau '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

Menetapkan tema pada 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 — Tema baru 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]; // Appends a new row with 3 columns 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

Menetapkan zona waktu untuk 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"]);
97Zona 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]; // Appends a new row with 3 columns 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

Menampilkan komponen antarmuka pengguna khusus dalam dialog yang berpusat di area pandang browser pengguna. Eksekusi skrip sisi server tidak ditangguhkan. Untuk berkomunikasi dengan sisi server, komponen antarmuka pengguna harus membuat panggilan balik asinkron ke skrip sisi server

Jika skrip sisi server sebelumnya menampilkan dialog yang belum ditutup, maka dialog yang ada akan diganti dengan antarmuka pengguna dialog yang baru diminta

Cuplikan kode berikut menampilkan aplikasi

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

// Appends a new row with 3 columns 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 sederhana dalam dialog dengan judul, tinggi, dan lebar yang ditentukan

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

Mengurutkan lembar demi kolom, naik

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"]);
72Kolom yang akan diurutkan

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

Mengurutkan lembar demi kolom. Mengambil parameter untuk menentukan naik atau turun

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"]);
72Kolom yang akan diurutkan.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns 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 untuk jenis naik,
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns 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 untuk jenis turun

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

Menampilkan jendela sembulan di sudut kanan bawah spreadsheet dengan pesan 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);
_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"]);
97Pesan yang akan ditampilkan di 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

Menampilkan jendela sembulan di sudut kanan bawah spreadsheet dengan pesan dan judul 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);
_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"]);
97Pesan yang akan ditampilkan di 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"]);
97Judul opsional roti panggang

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

Menampilkan jendela sembulan di sudut kanan bawah spreadsheet dengan judul dan pesan tertentu, yang tetap terlihat selama jangka waktu tertentu

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"]);
97Pesan yang akan ditampilkan di 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"]);
97Judul opsional roti panggang.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns 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);
08 Batas waktu dalam hitungan detik;

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

Perlihatkan kolom dalam rentang 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);
_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"]);
56Rentang untuk ditampilkan, jika 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]; // Appends a new row with 3 columns 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

Perlihatkan baris dalam rentang 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);
_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"]);
56Rentang untuk ditampilkan, jika 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]; // Appends a new row with 3 columns 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

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. Bekerja persis seperti
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns 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. 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 ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; // Appends a new row with 3 columns 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

Menunggu hingga semua eksekusi saat ini di spreadsheet selesai, waktu habis setelah jumlah detik yang diberikan. Mengeluarkan pengecualian jika eksekusi tidak selesai saat waktu habis, tetapi tidak membatalkan eksekusi data

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"]);
72Waktu untuk menunggu eksekusi data, dalam hitungan detik. Maksimal 300 detik

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

Tidak digunakan lagi. Untuk spreadsheet yang dibuat dalam versi Google Sheets yang lebih baru, gunakan

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

// Appends a new row with 3 columns 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, yang mengembalikan kelas
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Appends a new row with 3 columns 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 yang lebih canggih. Meskipun metode ini tidak digunakan lagi, metode ini tetap tersedia untuk kompatibilitas dengan versi Lembar yang lebih lama

Bagaimana cara mendapatkan nama file dan URL dari Google Drive ke sheet?

Mencantumkan Nama File dan URL Folder Google Drive ke Lembar Google .
Buka dokumen Google Sheet baru dari akun Google yang Anda inginkan untuk daftar direktori Google Drive
Di bilah alat untuk Lembar Google baru, buka Alat -> Editor skrip
Buat skrip untuk. Skrip sebagai Aplikasi Web
Editor kode akan terbuka

Bagaimana cara mengekstrak nama dari Google Sheets?

Mengekstrak Nama Depan di Google Dokumen .
Pilih sel kosong
Ketik =LEFT( dan klik sel yang berisi data nama Anda
Ketik koma, diikuti dengan FIND(“ “, lalu klik lagi yang berisi data nama Anda. .
Masukkan tanda kurung tutup, diikuti dengan -1 dan tanda kurung tutup terakhir
Tekan Enter untuk mengekstrak nama depan

Apa nama file Google Sheet?

Di bawah Type of File, Anda akan melihat “ Google spreadsheet (. Gsheet) . ”

Bagaimana cara menemukan ID dokumen di Google Sheets?

Spreadsheet-id dapat ditemukan di URL spreadsheet . Contoh URL. https. //dokumen. google. com/spreadsheets/d/1W2S4re7zNaPk9vqv6_CqOpPdm_mDEqmLmzjVe7Nb9WM/edit#gid=0 - di URL ini, 1W2S4re7zNaPk9vqv6_CqOpPdm_mDEqmLmzjVe7Nb9WM adalah spreadsheet-id.