1var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheets()[0];
2var range = sheet.getRange('A1:D10');
3//range.activate();
4var values = range.getValues();
5//Logger.log(values[0][0]);
6var selection = sheet.getSelection();
7// Current cell: A1
8var currentCell = selection.getCurrentCell();
9// Active Range: A1:D10
10var activeRange = selection.getActiveRange();