i have a Master and several tabs am using a Query to copy ( Mirror ) specific columns as below :
select Col1,Col5,Col6,Col7,Col8,Col9,Col10,Col11,Col12,Col13 where Col1 is not null
and the sheets were 12 sheet populating the data to the Master
while at the same time i have a script which i used to remove any work done in the master to another sheet, the issue is anytime i remove the entire row it returns back to populate in the master due to the query
i was willing to use a script to copy the same work as the query but one time only, as if i want to delete any specific row from the master will not be copy again :
function myFunction() {
var ss = SpreadsheetApp.getActiveSpreadsheet ();
var source = ss.getRange ("Sheet1!A4:M","Sheet2!A4:M","Sheet3!A4:M");
var destSheet = ss.getSheetByName("Master");
var destRange = destSheet.getRange(destSheet.getLastRow()+1,1);
source.copyTo (destRange, {contentsOnly: true})}
which is not working correctly, your help and advice will highly appriciated.