I'm looking to save data from a particular cell to another sheet. On said sheet I need it to save to the next available row within a defined column. I have the script below that will save the data to the next available row, but am unsure of how to define the column. In the example below, I'd need it to be saved into the 'A' column.
function transferList() {
var sourceSheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("Cancellations");
var sourceData = sourceSheet.getRange("D5").getValues();
var targetSS = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("Sheet12");
var targetRangeTop = targetSS.getLastRow();
targetSS.getRange(targetRangeTop+1,1,sourceData.length,sourceData[0].length).setValues(sourceData);
}