• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Want to filter >180

veronica.mam

New Member
Hi, I have a column with data as

0-30

31-60

61-90

91-180

>180.


I am able to filter out all values using VBA but when it comes to ">180", I am not able to select that value as criteria in autofilter.


Can somebody please help me in this !!!!

Thank you.
 
Hi Veronica,


try the code below

[pre]
Code:
Selection.AutoFilter
ActiveSheet.Range("$A$1:$B$18").AutoFilter Field:=2, Criteria1:="=>180", _
Operator:=xlAnd
[/pre]
Please make changes to cell referrencing as per your Columns

~VijaySharma
 
Back
Top