try this see if it works Sub Macro1()
ActiveSheet.Columns("a:k").AutoFilter field:=10, Criteria1:="1", _ Operator:=xlAnd ActiveSheet.Columns("a:k").AutoFilter field:=11, Criteria1:="#N/D!" End Sub On Sat, Nov 6, 2010 at 12:22 AM, oryn <dari...@gmail.com> wrote: > Hi, > I have a problem mentioned in topic. > I have macro like this: > > Sub Przycisk22_Kliknięcie() > > Range("A:K").AutoFilter field:=11, Criteria1:="1", > Operator:=xlFilterValues > Range("A:K").AutoFilter field:=12, Criteria2:="#N/D!", > Operator:=xlFilterValues > > End Sub > > The result is that filters are made but I still need to click one of > them( on 11th or 12th column) manually and then confirm OK . Only then > I can see results of filtering- before sheet is empty like none of > results is complying criterias. > > thank you in advance > > -- > > ---------------------------------------------------------------------------------- > Some important links for excel users: > 1. Follow us on TWITTER for tips tricks and links : > http://twitter.com/exceldailytip > 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 > 3. Excel tutorials at http://www.excel-macros.blogspot.com > 4. Learn VBA Macros at http://www.quickvba.blogspot.com > 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com > > To post to this group, send email to excel-macros@googlegroups.com > > <><><><><><><><><><><><><><><><><><><><><><> > Like our page on facebook , Just follow below link > http://www.facebook.com/pages/discussexcelcom/160307843985936?v=wall&ref=ts > -- *Regards* * * *Ashish Koul* *akoul*.*blogspot*.com <http://akoul.blogspot.com/> *akoul*.wordpress.com <http://akoul.wordpress.com/> My Linkedin Profile <http://in.linkedin.com/pub/ashish-koul/10/400/830> P Before printing, think about the environment. -- ---------------------------------------------------------------------------------- Some important links for excel users: 1. Follow us on TWITTER for tips tricks and links : http://twitter.com/exceldailytip 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 3. Excel tutorials at http://www.excel-macros.blogspot.com 4. Learn VBA Macros at http://www.quickvba.blogspot.com 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com <><><><><><><><><><><><><><><><><><><><><><> Like our page on facebook , Just follow below link http://www.facebook.com/pages/discussexcelcom/160307843985936?v=wall&ref=ts