Skip to content

Instantly share code, notes, and snippets.

@Tomokatsu-Sakamoto
Created February 12, 2022 14:20
Show Gist options
  • Save Tomokatsu-Sakamoto/2b6021d6264c39ad7fae0e8d0b44cb99 to your computer and use it in GitHub Desktop.
Save Tomokatsu-Sakamoto/2b6021d6264c39ad7fae0e8d0b44cb99 to your computer and use it in GitHub Desktop.
/** @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();
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment