Answers for "google apps script to get spreadsheet range to a variable"

1

google apps script to get spreadsheet range to a variable

var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheets()[0];
var range = sheet.getRange('A1:D10');
//range.activate();
var values = range.getValues();
//Logger.log(values[0][0]);
var selection = sheet.getSelection();
// Current cell: A1
var currentCell = selection.getCurrentCell();
// Active Range: A1:D10
var activeRange = selection.getActiveRange();
Posted by: Guest on May-14-2020

Code answers related to "google apps script to get spreadsheet range to a variable"

Browse Popular Code Answers by Language