Consulting

Results 1 to 3 of 3

Thread: Autofilter on row 3

  1. #1

    Autofilter on row 3

    how can I autofilter on line 3

     
     ThisWorkbook.Sheets("CM").Range("A3").AutoFilter Field:=25, Criteria1:=ThisWorkbook.Sheets("Agent_View").Range("H8").Value, Operator:=xlAnd
    My code above puts the filters on row so I loose all the headers , not good

    can anyone help ?

  2. #2

    Thumbs up Please attach

    Hi
    Please attach the file for better understanding...
    Sailesh Kr Mishra
    Proud To Be An Indian

  3. #3
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    [vba]

    With ThisWorkbook

    .Worksheets("CM").Range("$A$3").CurrentRegion.Rows(1).AutoFilter
    .Worksheets("CM").Range("$A$3").CurrentRegion.AutoFilter _
    Field:=25, _
    Criteria1:=.Sheets("Agent_View").Range("H8").Value
    End With
    [/vba]
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •