I see. What you should use is an Access database. You'll be able to pull only those fields you need from a table with a simple query. If you'd like to post a sample of your worksheet, I'd be happy to put a simple sample database together for you. Much easier and better data structure.
That being said, lets try to find a solution in excel. The way I see it, you have 1 criteria (the field you are filtering on) and a set of data based on that criteria (the columns to copy to a new sheet). I believe you may need to set up your code to use that criteria as an argument. Something like this:
I have not tested this, so it may not be perfect. Assign intColCrit as the column number you are filtering based on. Assign arrColtoPaste() elements as each column you want to copy to the new sheet.
The macro should now paste over everything, then go through and clear all columns you did not want to keep, then delete all empty columns.
Bookmarks