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