AddFilter

AutoFilter.AddFilter method

为过滤列添加过滤器。

public void AddFilter(int fieldIndex, string criteria)
范围类型描述
fieldIndexInt32您要作为过滤器基础的字段的整数偏移量 (从列表的左侧开始;最左侧的字段是字段0)。
criteriaString指定的条件(字符串;例如,“101”)。 它只能为空或为该列中单元格的值之一。

评论

MS Excel 2007 支持在筛选列中进行多选。

也可以看看