vba - Code to check if range is empty -


i have code check if range or cell empty. not sure, best way use code. basically, want code check if specified range on sheet empty. if empty, dropdown value on other sheet should "no".

if add code in user module. advised call function sheet module? or add directly sheet module?

sub empty()     if worksheetfunction.counta(range("e19:i30")) = 0          thisworkbook.worksheets("mainsheet").range("e20") = "no"     else           exit sub     end if end sub 


Comments

Popular posts from this blog

php - trouble displaying mysqli database results in correct order -

depending on nth recurrence of job in control M -

sql server - Cannot query correctly (MSSQL - PHP - JSON) -