I have a google script that runs monthly so I can compare changes between two sheets so I can track monthly movements and differences. The script is working fine as below
function makeTabs() {
var formattedDate = Utilities.formatDate(new Date(), "GMT", "yyyy-MM-dd");
var tabName = "Data " + formattedDate;
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheetByName('Combined (Read Only)').copyTo(ss);
SpreadsheetApp.flush(); // Utilities.sleep(2000);
sheet.setName(tabName);
/* Make the new sheet active */
ss.setActiveSheet(sheet);
}
The problem here is the script is copying across all the formulas as well which means the values are updating and I don't need that to happen. I just want to make a copy of the sheet values only