Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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


--
gabch
------------------------------------------------------------------------
gabch's Profile: http://www.excelforum.com/member.php...o&userid=30662
View this thread: http://www.excelforum.com/showthread...hreadid=512183

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default 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" wrote in
message ...

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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic autofilter field merry_fay Excel Discussion (Misc queries) 2 March 17th 10 02:11 PM
New date based on one date field minus minutes in another field [email protected] Excel Discussion (Misc queries) 1 December 25th 07 04:05 PM
Linked date field in worksheet defaults a blank field as 1/0/1900 AmnNkD Excel Worksheet Functions 2 September 12th 06 05:42 PM
Selection.AutoFilter Field:=1 MBlake[_2_] Excel Programming 7 August 25th 05 08:03 PM
Search Using Autofilter - Field Ben Allen Excel Programming 1 April 23rd 04 02:58 AM


All times are GMT +1. The time now is 12:16 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"