I need to change the NumberFormat for all the values into a specific column with app script. Here is an extract of my code :
var range = ss.getRange(2,2,ss.getMaxRows(),1).getValues();
range.setNumberFormat("0");
The execution displays the following error : "TypeError: range.setNumberFormat is not a function" but I do not understand why.
For your information, when I log my range with :
Logger.log(range)
Here is the result :
[[2.0222117E7], [2.0222004E7], [2.0222004E7], [2.0222003E7], [2.0222002E7], [2.0222001E7], [2.0211004E7], [2.0211003E7], [2.0211002E7], [2.0211001E7], [2.0200004E7], [2.0200003E7], [2.0200002E7], [2.0200001E7], [2.0199001E7],...
Many thanks