How can i hide the dropdown arrows for Filter range?

tonywatsonhelp

Well-known Member
Joined
Feb 24, 2014
Messages
3,194
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
Hi everyone,
I have a number of filters within a range all written like the one below
the problem i have is it not hiding the filter droopdowns for columns that dont have a filter in them
is ther a bit of code or way i can tell it to not show any dropdowns for the range?

VBA Code:
Sheets("Proposals Dashboard").Range("$AC$65:$AQ$" & LRfilter1).AutoFilter Field:=6, Criteria1:=Focus, VisibleDropDown:=False

Sheets("Proposals Dashboard").Range("$AC$65:$AQ$" & LRfilter1).AutoFilter Field:=1, Criteria1:=Sold, VisibleDropDown:=False

in the example above only fields 1 and 6 have the dropdowns hidden which is not what i want

please help if you can

Tony
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
How about
VBA Code:
With Sheets("Proposals Dashboard")
   For i = 1 To 15
      Select Case i
         Case 1
            .Range("AC65:AQ" & LRfilter1).AutoFilter Field:=i, Criteria1:=Sold, VisibleDropDown:=False
         Case 6
            .Range("AC65:AQ" & LRfilter1).AutoFilter Field:=i, Criteria1:=Focus, VisibleDropDown:=False
         Case Else
            .Range("AC65:AQ" & LRfilter1).AutoFilter Field:=i, VisibleDropDown:=False
      End Select
   Next i
End With
 
Upvote 0
Glad to help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,213,561
Messages
6,114,312
Members
448,564
Latest member
ED38

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