google spreadsheet - How to write in cells in GoogleSpreadSheet using app Script? -
and sorry stupid question.
i know how program on vba excel, i´m having hard time doing simplest stuff in google spreadsheet , can´t find tutorials on-line.
my question regarding cells. in vba write in cells do:
cells(1,1) = 2 //that write number 2 in first row of first column
in vba can assign cell variable, like:
dim long = cells(1,1)
how can apply same principles in google spreadsheet?
thank much!
i´ve tried guys suggested. , have follow question.
i`m trying modify cells in specific range. i´ve tried code:
var sheet = spreadsheetapp.getactivespreadsheet().getactivesheet(); var board = sheet.getrange(2,2,9,9); board[0][0].setvalue(2);
but apparently can´t use array notation. i´m not sure if .setvaleu or .getrange problem. there way can use array notation chance cell?
thanks again!
try following:
var sheet = spreadsheetapp.getactivespreadsheet().getactivesheet(); var cell = sheet.getrange(1,1); cell.setvalue(2);
Comments
Post a Comment