i want to have a script where i can jump into the last row, which is empty that I don't have to scrowl down.
At the moment my script is jumping at the end of the compleet sheet. I don't know exactly how this works and i am testing, trying etc but i don't know what to do now.
function Zeile(){
var spreadsheet = SpreadsheetApp.getActive();
var sheet = spreadsheet.getActiveSheet();
var lastRow = spreadsheet.getLastRow();
if (sheet.getMaxRows() == lastRow) {
sheet.appendRow([""]);
}
lastRow = lastRow + 1;
var range = sheet.getRange('C' + lastRow + ':C' + lastRow);
sheet.setActiveRange(range);
}
I want that this script jumps down at the last row in C. Its jumping to row 3579 at the moment instead of 1585. Can someone help me how I can fix this?
Thanks
MrsSykes