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
Post a Comment