Consulting

Results 1 to 2 of 2

Thread: Filter dates and blanks

  1. #1
    VBAX Regular
    Joined
    Sep 2011
    Posts
    78
    Location

    Filter dates and blanks

    Hi,

    I have a spreadsheet that holds data of disciplinary cases. It has a date column that is completed when a case is completed.

    I need to filter this column to get the cases that was completed in a particular period as well as pending cases, i.e. blank fields.

    I can't make it work.

    I tried several possibilities, e.g.

    Activesheet.range("myRange").autofilter field:=6, criteria:=array("="), _
    Operator:=xlOr, Criteria2:=">=2013/04/01", Operator:=xlAnd, Criteria3:="<=2013/06/30"

    I have been working long hours for a few days and my brain is flat! I know the answer is probably staring me in the face, but I cannot see it.

    Please help.

    Z

  2. #2
    Moderator VBAX Guru Simon Lloyd's Avatar
    Joined
    Sep 2005
    Location
    UK
    Posts
    3,003
    Location
    You dont need VBA, just filter in place, here's a brilliant tutorial on all the how too's http://www.contextures.com/xladvfilter01.html
    Regards,
    Simon
    Please read this before cross posting!
    In the unlikely event you didn't get your answer here try Microsoft Office Discussion @ The Code Cage
    If I have seen further it is by standing on the shoulders of giants.
    Isaac Newton, Letter to Robert Hooke, February 5, 1675 English mathematician & physicist (1642 - 1727)

Posting Permissions

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