+ Reply to Thread
Results 1 to 2 of 2

Autofilter with date field

  1. #1
    Registered User
    Join Date
    01-20-2006
    Posts
    68

    Autofilter with date field

    Hi,

    In Autofilter, how to handle between the date format in cells and input date format(for criteria)?
    For example, date format in cells is d/m/yy but the input date format is dd-mmm-yyyy.

    Thx

  2. #2
    Norman Jones
    Guest

    Re: Autofilter with date field

    Hi Gabch,

    Try something like:

    Range("A1").AutoFilter Field:=1, _
    Criteria1:=">" & CLng(Range("E1").Value)

    or

    Range("A1").AutoFilter Field:=1, _
    Criteria1:=">" & CLng(DateValue("01/12/1944"))



    ---
    Regards,
    Norman



    "gabch" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi,
    >
    > In Autofilter, how to handle between the date format in cells and input
    > date format(for criteria)?
    > For example, date format in cells is d/m/yy but the input date format
    > is dd-mmm-yyyy.
    >
    > Thx
    >
    >
    > --
    > gabch
    > ------------------------------------------------------------------------
    > gabch's Profile:
    > http://www.excelforum.com/member.php...o&userid=30662
    > View this thread: http://www.excelforum.com/showthread...hreadid=512183
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1