Hi,
The advanced Filter needs a heading in the 1st row selected, unfortunately by referring to a column in a table (listobj) only the data is passed to the range object in vba, a workaround:
Note that you cannot use the adjacent column as target range, this will result in a application defined error as you cannot have 2 identical headings in a table.
dictionary solution:
Filter vs dictionary:
- When sheet is protected you cannot use filter
- Formatting is kept using filter, dic provides values only
- dic is 3 times faster (based on processing your test data 1000 times)
Bookmarks