get and set Value of a Cell do not work

前端 未结 2 1097
执笔经年
执笔经年 2020-12-18 12:13

I have trouble with getting a Value from a Cell in my Spreadsheet. I found the getCell()-method in the documentation but it does not work. It always just gets \"Range\" inst

2条回答
  •  长情又很酷
    2020-12-18 12:32

    getCell() returns a Range object.. you need to add the .getValue() method to get the value of the cell in the range.

    https://developers.google.com/apps-script/reference/spreadsheet/range#getValue()

提交回复
热议问题