vba - Search sheet and copy cell values -
i have sheet called names has information on multiple individuals. want go through entire column searching name of person, name of person value input textbox1
. once name found go on 2 columns there address stored , put value variable. once done want go sheet called summary , paste value cell l2
. know how loop through values getting stuck rest. below shows have far:
set rng = range("c1:c1000") each cell in rng if cell.value <> textbox1.value end if next cell
you try:
if cell.value = textbox1.value var = cell.offset(0,2) sheets("summary").range("l2") = var end if
Comments
Post a Comment