Selecting a Dynamic Date Range Using AutoFilters : AutoFilter « Excel « VBA / Excel / Access / Word

VBA / Excel / Access / Word
1. Access
2. Application
3. Data Type
4. Data Type Functions
5. Date Functions
6. Excel
7. File Path
8. Forms
9. Language Basics
10. Math Functions
11. Outlook
12. PowerPoint
13. String Functions
14. Windows API
15. Word
16. XML
Java
Java Tutorial
Java Source Code / Java Documentation
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
VBA / Excel / Access / Word » Excel » AutoFilter 
Selecting a Dynamic Date Range Using AutoFilters
 
Sub DynamicAutoFilter()
    Worksheets("SalesReport").Select
    Range("A1").AutoFilter
    Range("A1").AutoFilter Field:=3,Criteria1:=xlFilterNextYear,Operator:=xlFilterDynamic
End Sub

 
Related examples in the same category
1. The AutoFilter object only exists when the AutoFilter feature is turned on. You can determine whether the Worksheet AutoFilter is active by using the value of the AutoFilterMode property
2. To switch off a range AutoFilter, you use the AutoFilter method of the Range object with no parameters:
3. To ensure that the worksheet AutoFilter is turned off
4. determine whether a ListObject object AutoFilter is turned on or off by testing its ShowAutoFilter property.
5. There is a Filters collection associated with the AutoFilter object that holds a Filter object for each field in the AutoFilter
6. turn on/off the AutoFilter drop-downs:
7. Use this code to turn off the AutoFilter drop-downs:
8. turns off the drop-downs for Columns C, E, F, G, and H:
9. filters to show records
10. To clear the filter from the customer colum
11. filter a column to one of two customers, joined by the OR operator:
12. returns all customers that started with the letters A through E:
13. produces the top 10 revenue records:
14. Selecting Multiple Values from a Filter
15. Filtering Based on Color or Icon
16. To find records that have no conditional formatting icon, use an operator of xlFilterNoIcon and do not specify any criteria.
17. To find records that have a particular fill color, use an operator of xlFilterCellColor and specify a particular RGB value as the criteria.
18. To find records that have no fill color, use an operator of xlFilterNoFill and do not specify any criteria.
19. To find records that have a particular font color, use an operator of xlFilterFontColor and specify a particular RGB value as the criteria.
20. The fastest way to delete rows is provided by Excel's AutoFilter feature:
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.