AutoFilter AutoFilter AutoFilter Interface

Definition

Represents autofiltering for the specified worksheet.

public interface class AutoFilter
[System.Runtime.InteropServices.Guid("00024432-0000-0000-C000-000000000046")]
[System.Runtime.InteropServices.InterfaceType(2)]
public interface AutoFilter
Public Interface AutoFilter
Attributes

Remarks

Use the AutoFilter property to return the AutoFilter object. Use the Filters property to return a collection of individual column filters. Use the Range property to return the Range object that represents the entire filtered range.

To create an AutoFilter object for a worksheet, you must turn autofiltering on for a range on the worksheet either manually or using the AutoFilter(Object, Object, XlAutoFilterOperator, Object, Object) method of the Range object.

Properties

Application Application Application

Returns an Application object that represents the creator of the specified object (you can use this property with an OLE Automation object to return the application of that object). Read-only.

Creator Creator Creator

Returns a 32-bit integer that indicates the application in which this object was created. If the object was created in Microsoft Excel, this property returns the string XCEL, which is equivalent to the hexadecimal number 5843454C. Read-only XlCreator.

FilterMode FilterMode FilterMode

Returns True if the worksheet is in the AutoFilter filter mode. Read-only Boolean.

Filters Filters Filters

Returns a Filters collection that represents all the filters in an autofiltered range. Read-only.

Parent Parent Parent

Returns the parent object for the specified object. Read-only.

Range Range Range

Returns a Range object that represents the range to which the specified AutoFilter applies.

Sort Sort Sort

Gets the sort column or columns, and sort order for the AutoFilter collection.

Methods

ApplyFilter() ApplyFilter() ApplyFilter()

Applies the specified AutoFilterobject.

ShowAllData() ShowAllData() ShowAllData()

Displays all the data returned by the AutoFilterobject.

Applies to