Remove Filters from certain columns

dellmech

New Member
Joined
Apr 22, 2018
Messages
14
This has got me stumped!

I have Filter icons in A17, B17, C17, D17, E17 which filters data from A18:E40

I want to remove the filter icons from B17 and D17. HOWEVER, if I insert a column after column A, the columns I want hidden move. So I have to name the columns.

So if I name column B ="RED" and column D ="BLUE"...does anyone know what VBA code I can use to keep the filter icons off these 2 columns?

Thanks for your help in advance!
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Assuming your "icons" are filter dropdowns, try:
Rich (BB code):
Range("RED").AutoFilter field:=1, Criteria1:=your criteria, visibledropdown:=False
 
Upvote 0

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top