I'm writing a script where I need to take in a number attached to a name and team, process it as # of Rolls essentially, and then paste the results one by one into a running log. Each team will have it's own columns of name and roll, with multiple teams.
jumpNext()
does not seem to customize to a specified column. I suspect this because when I call jumpNext(sheet, 3)
, the printed text prints staggered, as if it is still using Column 1 or something like .getLastRow() as reference.
I would really appreciate any help with this!
Code in mention:
if (newTeam == teamOne) {
jumpNext(teamSheet, 1).setValue(newName);
jumpNext(teamSheet, 3).setValue(rnJesus());
}
function jumpNext(sheet, column) {
return sheet.setActiveSelection(sheet.getRange(
sheet.getDataRange().getHeight() + 1, column));
}
I based my code on this: Use this little bit of code: jump().
Edit: formatting