sheet.copyTo always returns "A server error has occurred" in new Google sheets -
I do not mind that I can not get the sheet.copyTo () function to work in the new Google Sheet. Always has "a server error", I have tried to convert the source into a new format. The same code works correctly with the old Google Sheets with the exact same source that does not work with CSV files.
works for me
function ctest () {var Source = SpreadsheetApp.getActiveSpreadsheet (); Var sheet = source.getSheets () [1]; Logger.log (sheet.getName ()) var destination = spreadsheet App.create ("testcopy"); Sheet.copyTo (destination); }
Comments
Post a Comment