I want to copy the value of a cell depending on the date.
function pastespecial() {
var app = SpreadsheetApp;
var activeSheet = app.getActiveSpreadsheet().getActiveSheet();
var currentDate = new Date();
var spreadsheet = SpreadsheetApp.getActive();
for (var i = 2; i <= 150; i++) {
var workingCell = activeSheet.getRange(i, 1).getValue();
if (workingCell = currentDate) {
var spreadsheet.getRange(i, 6).activate();
spreadsheet.getRange('AB6').copyTo(spreadsheet.getActiveRange(), SpreadsheetApp.CopyPasteType.PASTE_NORMAL, false);
}
}
};
The error
Missing ; before statement. (line 17, file "macros")