Created
February 12, 2022 14:52
-
-
Save Tomokatsu-Sakamoto/7c58f1523a7eb1554a9e71b962d6723b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** @OnlyCurrentDoc */ | |
function myFunction() { | |
var spreadsheet = SpreadsheetApp.getActive(); | |
spreadsheet.getRange('A1').activate(); | |
spreadsheet.getCurrentCell().setValue('1'); | |
spreadsheet.getRange('B2').activate(); | |
spreadsheet.getCurrentCell().setValue('2'); | |
spreadsheet.getRange('C3').activate(); | |
spreadsheet.getCurrentCell().setValue('3'); | |
spreadsheet.getRange('C4').activate(); | |
}; | |
function myFunction1() { | |
var spreadsheet = SpreadsheetApp.getActive(); | |
spreadsheet.getCurrentCell().setValue('1'); | |
spreadsheet.getCurrentCell().offset(1, 1).activate(); | |
spreadsheet.getCurrentCell().setValue('2'); | |
spreadsheet.getCurrentCell().offset(1, 1).activate(); | |
spreadsheet.getCurrentCell().setValue('3'); | |
spreadsheet.getCurrentCell().offset(1, 0).activate(); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment