I can't set a variable to return the number to the last row under the K column in google sheets. The code fails on the last line - .setValues(exampleText) where I have already defined exampleText as a variable.
I have used different methods of setting variables including setting a variable for a column.
I get the following error: "Cannot find method getRange(number,number)."
The following code works solved by @TheMaster
var ss = SpreadsheetApp.getActiveSpreadsheet()
var column = 11
var lastRow = ss.getLastRow();
range = ss.getActiveSheet().getRange(lastRow,column);
range.setValue(exampletext)