Google Sheets: Hiding Rows Based on Cell Value Yes/No

Hide and Show Rows based upon Validation Selection You need to add the sheet name and set up the validation for B3. function onEdit(e) { if(e.range.columnStart==2 && e.range.rowStart==3 && e.range.getSheet().getName()==’Sheet92′) {//add your sheet name if(e.value==’Yes’) { e.range.getSheet().showRows(4,9); } if(e.value==’No’) { e.range.getSheet().hideRows(4,9); } } }

TypeError: Cannot call method “getRange” of null. (line 9, file “Code”)

It means that tss.getSheetByName(‘Zones >20 Riders’); did not return anything. You need to check that indeed a sheet was found before trying to access it. Here’s the example provided at Google Docs: var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName(“Expenses”); if (sheet != null) { // Do your thing } If you are not sure what a method does, … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)