Supose you have a sheet with several hundred rows long. You could to this to go to the last row and start your work:
1) after opening the spreadsheet, do Ctrl End; Ctrl leftArrow; Ctrl upArrow this will take you to the last occupied row cell in column A 2) before closing the spreadsheet, select the last occupied cell in column A and assign it range name endRow then when you open the spreadsheet do Edit > Named ranges then click on endRow this will take you to the last occupied row cell in column A;
I just find a way to programmatically implement this, it's really simple, but worked only in the oldspreadsheet. I just put this line inside onOpen()
trigger and just works fine: activeSheet.getRange(activeSheet.getLastRow(), 1).activate();
.
But it didn't work in the new Google Sheets (a new one with some thousands of rows).
So, I tried the Zig advice, write this function:
function goToLastRow() {
var s = SpreadsheetApp.getActiveSpreadsheet();
var range = s.getRange(s.getLastRow()+1, 1);
range.activate();
}
And set the trigger manually (Script Editor>>Resources>>Triggers from this project>>Ad new trigger
). But it still didn't work.
Any suggestion?