Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

How to clear cells-A:2 is on a sheet(Incdt) that is linked to A:2(Resident) on another sheet. Want to clear B2:F2 on (Incdt) when Resident is modified

$
0
0

//This code works if I edit the sheet but does not work if the link sheet is modified.I think it is because the cell that is being modified is the cell from another sheet that is linked to the sheet where I want the cells to be deleted.

function onEdit(e){  if(e.range.getA1Notation() == 'A1'&&       e.range.getSheet().getName() == 'Incdt/Obs Rpt'    )     e.source.getRange('B1').clear()}

Viewing all articles
Browse latest Browse all 9782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>