Skip to content

Instantly share code, notes, and snippets.

@ndthanh
Created December 10, 2018 17:30
Show Gist options
  • Save ndthanh/f767c3f0d9aa5528211542fd572c255b to your computer and use it in GitHub Desktop.
Save ndthanh/f767c3f0d9aa5528211542fd572c255b to your computer and use it in GitHub Desktop.
//1. convert all formulas to values in the active sheet
function formulasToValuesActiveSheet() {
var sheet = SpreadsheetApp.getActiveSheet();
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