|
| 1 | +<!-- TOC --> |
| 2 | + |
| 3 | +- [Google Apps Script Snippets](#google-apps-script-snippets) |
| 4 | + - [Gists](#gists) |
| 5 | + - [Spreadsheet (Class)](#spreadsheet-class) |
| 6 | + - [getWorkSpreadsheet](#getworkspreadsheet) |
| 7 | + - [cropSheetBySize(sheet, leftRows, topCols)](#cropsheetbysizesheet-leftrows-topcols) |
| 8 | + - [Example](#example) |
| 9 | + - [cropSheetByData(sheet)](#cropsheetbydatasheet) |
| 10 | + - [Example](#example-1) |
| 11 | + - [flushAndSleep(milliseconds)](#flushandsleepmilliseconds) |
| 12 | + - [onOpen() Move to last cell in specific worksheet [Simple]](#onopen-move-to-last-cell-in-specific-worksheet-simple) |
| 13 | + - [onOpen() Move to last cell in specific worksheet [Advanced]](#onopen-move-to-last-cell-in-specific-worksheet-advanced) |
| 14 | + - [Spreradsheet (Arrays)](#spreradsheet-arrays) |
| 15 | + - [mapSheetHeaders(headers)](#mapsheetheadersheaders) |
| 16 | + - [Example](#example-2) |
| 17 | + - [DriveApp](#driveapp) |
| 18 | + - [moveFileToFolder(file, folder, stayRoot)](#movefiletofolderfile-folder-stayroot) |
| 19 | + - [Example](#example-3) |
| 20 | + - [Extends and override](#extends-and-override) |
| 21 | + - [Short `Utilities.formatDate`](#short-utilitiesformatdate) |
| 22 | + - [Short `Utilities.formatString`](#short-utilitiesformatstring) |
| 23 | + - [getArray(length, defaultValue)](#getarraylength-defaultvalue) |
| 24 | + - [Example](#example-4) |
| 25 | + - [Pretty JSON in Logger](#pretty-json-in-logger) |
| 26 | + |
| 27 | +<!-- /TOC --> |
1 | 28 | # Google Apps Script Snippets
|
2 | 29 | ## Gists
|
3 | 30 | - [The Modal Dialog][1] works longer than the Prompt.
|
@@ -90,14 +117,6 @@ function onOpen(){
|
90 | 117 | sheet.getRange(sheet.getLastRow(), 1).activate();
|
91 | 118 | }
|
92 | 119 | ```
|
93 |
| -### setValuesToSheet(sheet, values, row, column) |
94 |
| -```javascript |
95 |
| -function setValuesToSheet(sheet, values, row, column){ |
96 |
| - row = row || 1; |
97 |
| - column = column || 1; |
98 |
| - return sheet.getRange(1, 1, values.length, values[0].length).setValues(values); |
99 |
| -} |
100 |
| -``` |
101 | 120 | ## Spreradsheet (Arrays)
|
102 | 121 | ### mapSheetHeaders(headers)
|
103 | 122 | Map headers of a 2d array
|
|
0 commit comments