Forum Discussion

Dean_T-B's avatar
Dean_T-B
Copper Contributor
Jul 30, 2022
Solved

Filter Non-Adjacent Columns

Is it possible to use the filer function for columns that aren't right next to each other? I don't want all the arrows across the whole table, only in 2 collums. I would prefer not using VBA but any ...
  • HansVogelaar's avatar
    HansVogelaar
    Jul 31, 2022

    Dean_T-B 

    Let's say the table is named Table1.

    Press Alt+F11 to activate the Visual Basic Editor.

    Press Ctrl+G to activate the Immediate window in the Visual Basic Editor.

    Type or copy/paste the following line:

     

    ActiveSheet.ListObjects("Table1").Range.AutoFilter Field:=2, VisibleDropdown:=False

     

    With the insertion point anywhere in that line, press Enter.

Resources