API Reference
Cmdlet
Clear-OfficeExcelAutoFilter
Clears any AutoFilter on the current worksheet.
Remarks
Clears any AutoFilter on the current worksheet.
Examples
Remove AutoFilter from the active sheet.
PS>
ExcelSheet 'Data' { Clear-OfficeExcelAutoFilter }
Removes filter dropdowns and criteria.
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.
Syntax
Clear-OfficeExcelAutoFilter [-PassThru] [<CommonParameters>]#Parameter set:
ContextParameters
- PassThru SwitchParameter
- Emit the object created or changed by the command.
Clear-OfficeExcelAutoFilter -Document <ExcelDocument> [-PassThru] [-Sheet <String>] [-SheetIndex <Int32>] [<CommonParameters>]#Parameter set:
DocumentParameters
- Document ExcelDocument
- Workbook to operate on outside the DSL context.
- PassThru SwitchParameter
- Emit the object created or changed by the command.
- Sheet String
- Worksheet name when using Document.
- SheetIndex Int32
- Worksheet index (0-based) when using Document.