what's autofiltered?

hawley

Board Regular
Joined
Apr 7, 2002
Messages
197
Is there a way to see what is being autofiltered?

The user can autofilter on some columns. Then they choose an option from my menu. The problem is I have to unfilter what they filtered so my process will work. When do though I want to refilter to what they had before the process was done. Can this be done and how????

Thanks-
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Another solution would be to copy the filtered data to a new sheet, unfilter it, apply you procces then delete the sheet.
 
Upvote 0
Thanks for the suggestion but I found this on another site which is what I was looking for. Here it is if you are curious.

Function FilterCriteria()
Dim Filter As String
Filter = ""
On Error GoTo Finish
With Range(Cells(9,2), Cells(9,14)).Parent.AutoFilter
With .Filters(Cells(9,8).Column)
If Not .On Then GoTo Finish
Filter = .Criteria1
Select Case .Operator
Case xlAnd
Filter = Filter & "AND " & .Criteria2
Case xlOr
Filter = Filter & " OR " & .Criteria2
End Select
End With
End With
Finish:
FilterCriteria = Filter
End Function
This message was edited by hawley on 2002-05-06 12:02
This message was edited by hawley on 2002-05-06 12:02
 
Upvote 0

Forum statistics

Threads
1,214,861
Messages
6,121,971
Members
449,059
Latest member
oculus

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