excel vba - VBA for executing something based on cell value -


i have spreadsheet have input formula in particular column gives me either yes or no. want code search column "yes" , wherever finds - should row number of cells

give try:

sub marine()     each r in intersect(range("a:a"), activesheet.usedrange)         if r.value = "yes"             msg = msg & vbcrlf & r.row         end if     next r     msgbox "yes found in rows " & msg end sub 

Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -