I\'m writing a script that creates fixed-width-text output of the contents of a Google Apps Spreadsheet. I retrieve all the values of the current range using the range
function NumberFormat()
{var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
var cell = sheet.getRange("A1:B10");
// Always show 2 decimal points
cell.setNumberFormat("0,00,000.00");
}