Worksheet.FilterMode property (Excel)
True if the worksheet is in the filter mode. Read-only Boolean.
expression A variable that represents a Worksheet object.
In the following example, the code returns True if the worksheet is in the filter mode.
Dim Worksheet1 As Worksheet Dim returnValue As Boolean returnValue = Worksheet1.FilterMode
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.