Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

How can I get to the bottom of a Google Sheet

$
0
0

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++;
    }
}

Viewing all articles
Browse latest Browse all 9782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>