excel VBA

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

how do I get reference to a column after I find a match in a different column
 
Your question isn't very clear. Perhaps you could provide a few
more details.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


licy said:
how do I get reference to a column after I find a match in a
different column
 
Dim rng as Range, rng1 as Range
set rng = columns(3).Find("searchterm")
if not rng is nothing then
set rng1 = rng.offset(0,10)
msgbox rng1.address
End if

this would give a reference to column M, same row as the searchterm was
found

as an example.

--
Regards,
Tom Ogilvy


licy said:
how do I get reference to a column after I find a match in a different
column
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top