Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
Use the Worksheet.AddAutoFilter method to enable AutoFilter for a worksheet. This method accepts the row index, start column index, and end column index.
To enable a custom filter, use the Worksheet.AddCustomFilter method, which accepts the row index to which the filter has to be applied and the custom filtering criteria.
The example below implements both AutoFilter and custom data filters. In the example, the AutoFilter feature is enabled, and filtered rows are retrieved based on some criteria.
Input: The data list in the first worksheet

Output: AutoFilter feature enabled

Custom‑filtered data based on the criteria

Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.