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: 1
Default executing an autofilter in VB

Hello everyone,
I tought I could find the answer by myself and not disturb you, but it
have 2/3 days that I've been searching solutions to my problem through
the NG and did not find any anwser.

Here is my problem :
I have programmed an autofilter under VB in Excel...the thing is that
when I run it from a userform...the autofilter is empty. And when i
have a look in the "personnalised"...my criteria are correct..so I
click on the OK button and finally the filtered data are displayed.....
What I don't understand is why those data are not displayed
automatically.

Here is my piece of VB program (which is very basic VB!!!) :

Rows("5:5").Select ' this select the entire line where there are the
titles of the columns
Selection.AutoFilter
Selection.AutoFilter Field:=9, Criteria1:="=" &
Format(Extractions.LDDate1.Date, "dd/mmm/yyyy"), Operator:=xlAnd,
Criteria2:="<=" & Format(Extractions.LDDate2.Date, "dd/mmm/yyyy")

nota : extractions is my userform, LDDate1 & LDDate2 are the databox
which gives the criterion for the autofilter.

thanks in advance for anyhelp, I really don't know what to do....

Angélique

 
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
excel 2007 autofilter change to 2003 autofilter functionality? jonnybrovo815 Excel Discussion (Misc queries) 1 April 19th 10 10:05 PM
2007 excel autofilter back to 2003 autofilter? jonnybrovo815 Excel Discussion (Misc queries) 3 April 19th 10 08:11 PM
2007 excel autofilter change back to 2003 autofilter? jonnybrovo815 Excel Discussion (Misc queries) 1 April 19th 10 05:53 PM
2007 Autofilter worse than 2003 Autofilter jsky Excel Discussion (Misc queries) 9 October 31st 07 12:14 AM
executing an add in Gary Keramidas Excel Programming 6 November 6th 05 09:56 PM


All times are GMT +1. The time now is 07:50 AM.

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

About Us

"It's about Microsoft Excel"