Are you sure you are not using var doc = SpreadsheetApp.openById(SPREADSHEET_ID_GOES_HERE).getActiveSheet(); as in your original post? With the code in this post, ss should be a Spreadsheet object, not a Sheet object.
คุณจะแน่ใจว่า คุณไม่ได้ใช้เอกสาร var = SpreadsheetApp.openById(SPREADSHEET_ID_GOES_HERE).getActiveSheet() ในโพสต์แรกของคุณ มีรหัสในโพสต์นี้ ss ควรเป็นกระดาษคำนวณวัตถุ ไม่เป็นวัตถุแผ่น