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

Color Cell by using the note in Google Sheets

$
0
0

Whenever I try to use the following script...

function onEdit(e){  if(e.range.getNote()){    e.range.setBackground('green');  }}

I get the following error...

TypeError: Cannot read property 'range' of undefinedonEdit  @ Code.gs:2

Any help would be appreciated. Thanks!


Viewing all articles
Browse latest Browse all 9782

Trending Articles



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