Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
lwc:programming:googlescripts [2021/02/01 15:09] – John Harrison | lwc:programming:googlescripts [2021/02/01 15:10] (current) – John Harrison | ||
---|---|---|---|
Line 5: | Line 5: | ||
function mainDeal() { | function mainDeal() { | ||
var ss = SpreadsheetApp.getActiveSpreadsheet(); | var ss = SpreadsheetApp.getActiveSpreadsheet(); | ||
- | var sourceSheet = getSheetByGid(ss, | + | var sourceSheet = getSheetByGid(ss, |
} | } | ||
+ | |||
function getSheetByGid(spreadsheet, | function getSheetByGid(spreadsheet, | ||
gid = +gid || 0; | gid = +gid || 0; |