//Find current filter and remove
var currentFilter = master_sheet.getFilter();
if ( currentFilter !== null ) {
master_sheet.getFilter().remove();
}
var master_lr=master_sheet.getLastRow();
var master_lc=master_sheet.getLastColumn();
//Apply filter here
master_sheet.getRange(1,1,master_lr,master_lc).createFilter();
var criteria = SpreadsheetApp.newFilterCriteria().setHiddenValues(['Reject','Approved']).build();
master_sheet.getFilter().setColumnFilterCriteria(45, criteria);
master_sheet.getFilter().getRange().copyTo(harmonize_approvers.getRange(1,1,master_lr-1,master_lc), SpreadsheetApp.CopyPasteType.PASTE_NORMAL, false);
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…