The information in this article applies to:
SUMMARY
In Microsoft Excel 97, you can programmatically hide an AutoFilter drop-
down list for a specific field in a list by using a new argument for the
Visual Basic for Applications AutoFilter Method.
MORE INFORMATIONMicrosoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. Microsoft support professionals can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific needs. If you have limited programming experience, you may want to contact the Microsoft fee-based consulting line at (800) 936-5200. For more information about the support options available from Microsoft, please see the following page on the World Wide Web: http://www.microsoft.com/support/supportnet/overview/overview.asp Syntax for the AutoFilter MethodUse the following syntax for the AutoFilter method:<expression>.AutoFilter(Field, Criteria1, Operator, Criteria2, Visibledropdown)where <expression> is an expression that returns a Range object. <Expression> is required for the AutoFilter method. The following table lists the optional arguments for the AutoFilter method and the descriptions for the arguments.
Sample Macro
There is no drop-down list for the Area field.
NOTE: The Visibledropdown argument for the AutoFilter method is not listed in the "AutoFilter Method" Help topic. Also, because the AutoFilter method is a write-only method, you cannot programmatically determine which fields in the list have drop-down lists that are hidden or unhidden. REFERENCES
For more information about the AutoFilter method, click the Office
Assistant, type autofilter, click Search, and then click to view
"AutoFilter Method".
Q120802 Office: How to Add/Remove a Single Office Program or Component Additional query words: 97 XL97 auto filter auto-filter drop down
Keywords : kbprg kbdta kbdtacode xllist KbVBA |
Last Reviewed: November 9, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |