Skip to content

Instantly share code, notes, and snippets.

@ndthanh
Created December 10, 2018 17:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ndthanh/fe49fdae0648201efa21809875fa76ef to your computer and use it in GitHub Desktop.
Save ndthanh/fe49fdae0648201efa21809875fa76ef to your computer and use it in GitHub Desktop.
//2. convert all formulas to values in every sheet of the Google Sheet
function formulasToValuesGlobal() {
var sheets = SpreadsheetApp.getActiveSpreadsheet().getSheets();
sheets.forEach(function(sheet) {
var range = sheet.getDataRange();
range.copyValuesToRange(sheet, 1, range.getLastColumn(), 1, range.getLastRow());
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment