VBA for filtering columns

Posted by Ampi Severe on Stack Overflow See other posts from Stack Overflow or by Ampi Severe
Published on 2012-12-18T14:13:11Z Indexed on 2012/12/18 17:03 UTC
Read the original article Hit count: 192

Filed under:
|
|

I have a big database-like sheet, first row contains headers. I would like a subset of rows of this table based on column values. Two issues:

1) VBA-wise I would like to loop through the columns, when the values for all necessary columns all match, copy the entire row into a new sheet.

2) The subset of rows is based on a list. This should be the first column to be looped through. For example I want all rows where the value in column A is equal to one of the values in my list. Is there any possibility to autofilter strings based on a list (column) of strings?

EDIT Thanks to @Doug Glancy the autofiltering works now, so I've removed my (horrible) code and issue 1 is solved.

© Stack Overflow or respective owner

Related posts about excel

Related posts about excel-vba