ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   VBA Filter? (https://www.excelbanter.com/excel-programming/446765-vba-filter.html)

Newbie

VBA Filter?
 
I would like to show only rows where column E (5?) is not zero. Can anybody show me how to do that?

Claus Busch

VBA Filter?
 
Hi,

Am Fri, 3 Aug 2012 09:50:51 -0700 (PDT) schrieb Newbie:

I would like to show only rows where column E (5?) is not zero. Can anybody show me how to do that?


ActiveSheet.Range("A1").AutoFilter Field:=5, _
Criteria1:="<0", Operator:=xlAnd


Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2


All times are GMT +1. The time now is 08:27 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com