I want to open my Google Sheets and go automatically to the bottom/last line entered as there are over 2000 lines.
I have entered the below text in: tools > script editor, as seen in another post however, it's not working in either sheet that I am not the owner and that I am the owner.
Can anyone help me understand why?
function onOpen(e) {
var spreadsheet = e.source;
var sheet = spreadsheet.getActiveSheet();
var row = 5;
while (true) {
var range = sheet.getRange("B" + row);
if (!range.getValue()) {
sheet.setActiveRange(range);
return;
}
row++;
}
}