View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
[email protected] kenlkelly@gmail.com is offline
external usenet poster
 
Posts: 1
Default Return all matching cell values

I don't do much vba but I have a problem that I cannot figure out how
to begin solving:

I have a worksheet called "aliases" as follows:

column a column b
table_name alias_name
customer customer1
customer customer2
sales sales2
sales sales2
site site1

What I need to do is create a function or procedure that takes
table_name as an input parameter and returns all matching alias
values.

For example, I would pass "customer" to the process and it would
return 'customer1 and customer2" so I can pass those values into
another procedure.

Regards,

Ken