I am new to Scripts - trying to create a script where when data is added to this sheet, ColumnA is automatically formatted as text, with no decimals.
        function myFunction() {
      /** @OnlyCurrentDoc */
    
    function MakeColAnumeric() {
    var spreadsheet = SpreadsheetApp.getActive();
    spreadsheet.getRange('A:A').activate();
    spreadsheet.getActiveRangeList().setNumberFormat('#,##0');
    };
    }
This is what I have tried so far, with no luck. Would appreciate it if anyone can point me towards the correct way.
