Why is google apps spreadsheet setValue function not setting values in cells?
问题 Why can't I use setValues in google apps spreadsheets API to set the values of cells in a spreadsheet? I entered the correct cell and the value seems ok. however nothing appears in the cells! I used the following to create the rows after the first row in my sheet. sheet.insertRowsAfter(1,15); After which I did this sheet.setActiveCell("C2").setValue("AAA"); 回答1: The problem is that you need to get the range before you can set values into it. Your code should be: sheet.getRange("c2").setValue(