Consulting

Results 1 to 4 of 4

Thread: Auto Filter Again

  1. #1
    VBAX Expert
    Joined
    Jan 2005
    Posts
    574
    Location

    Auto Filter Again

    Can anyone tell me why this starts my auto filter at row 1 and not row 8 and therefor doesnt filter correctly?

    Cheers

    Gibbo

    [VBA] Dim iLastRow As Long
    iLastRow = Cells(Rows.Count, "B").End(xlUp).Row
    Workbooks("Outstanding").Sheets("Data").Range("B8:L" & iLastRow).AutoFilter _
    Field:=3, Criteria1:="=Hello" [/VBA]

  2. #2
    Administrator
    2nd VP-Knowledge Base
    VBAX Master malik641's Avatar
    Joined
    Jul 2005
    Location
    Florida baby!
    Posts
    1,533
    Location
    Hey Gibbo, could you post a workbook? Your code works fine for me Maybe I'm not doing the same thing you are????




    New to the forum? Check out our Introductions section to get to know some of the members here. Feel free to tell us a little about yourself as well.

  3. #3
    VBAX Expert
    Joined
    Jan 2005
    Posts
    574
    Location
    Thanks for the reply Joseph

    I Just realised im being an idiot as I already had the autofilter turned on on row 1, turned it off and works fine!!!!

    Must be time for me to go home before i go nuts

    Cheers

    Gibbo

  4. #4
    Administrator
    2nd VP-Knowledge Base VBAX Master malik641's Avatar
    Joined
    Jul 2005
    Location
    Florida baby!
    Posts
    1,533
    Location
    Quote Originally Posted by gibbo1715
    I Just realised im being an idiot
    That's funny.

    Go home???? My day JUST STARTED!! That's not fair! What is it like 6:11PM over there?




    New to the forum? Check out our Introductions section to get to know some of the members here. Feel free to tell us a little about yourself as well.

Posting Permissions

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