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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -