LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 101
Default filter error



date filter error
the current sheet is following(format "yyyy-mm")
a column
mydt
2000-04
2000-04
2000-04
2000-05
2000-05
2000-06
but the real value(value in formula box)
a column
mydt
2000-04-01
2000-04-01
2000-04-01
2000-05-01
2000-05-01
2000-06-01

i want to filter 2000-05 only using macro.
the folowing code .... not work
sub ex()
set rng=range("a1:a7")
rng.autofilter
rng.autofilter 1, format(cdate("2000-05-01"),"yyyy-mm")
end sub

*** Sent via Developersdex http://www.developersdex.com ***
 
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
Pivot Table Filter Error sross002 Excel Discussion (Misc queries) 0 January 20th 10 03:26 PM
Error msg on Advanced Filter Helen Excel Discussion (Misc queries) 0 April 3rd 08 04:52 PM
auto filter with error value Cynthia Excel Discussion (Misc queries) 1 July 23rd 07 12:21 PM
Advanced Filter Error Claret Excel Programming 2 January 24th 06 03:40 PM
advanced filter error 1004 Tove Excel Programming 2 February 28th 05 07:22 PM


All times are GMT +1. The time now is 08:25 AM.

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"