How do you create a Set on Excel?

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

Guest

Here's what I'd like to do:

I'm planning on using the same file on several different tables, that all
have the same data but may have the different columns labelled differently:

Find Column that has the Rate
Assign Column with Rate as RatesColumn

The column with the Rate will be the column with a label in this set: (rate,
level, %, repo)

How can I create a Set of some sort which I can then use when running Find
and just say, if value is in Set then its True.
 
Dim rng as Range, rng1 as Range, rng2 as Range
set rng = Rows(1)
set rng1 = rng.Find("rate")
if not rng1 is nothing then
set rng2 = rng1.EntireColumns
else
msgbox "Column not found"
end if
 

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

Similar Threads

Table lookup 5
Comparing data on 2 worksheets 1
Excel Consecutive counts with conditions in excel 0
Sort Macro 4
Formula help pls 2
How do I create a macro to remove blank rows... 6
beginner : SQL in access 1
Compare Problem 2

Back
Top