Mind has gone blank! I have a Google Spreadsheet comprising three sheets. I want to manually select a row in the second (named) sheet for deletion. I select the row, but when I try to access the selection all I get every time is row1, col1 on the first sheet. The code I am using is as follows:
function cancelBooking() {
var ss = SpreadsheetApp.getActiveSpreadsheet();
var bookDB = ss.getSheetByName('Booking Database');
bookDB.activate; //not sure this is really necessary
var selection = bookDB.getSelection();
var activeRange = selection.getActiveRange();
activeRange.setFontColor('green');
etc
But all I get is the top left cell in the first sheet turning green. What am I missing?