Info

l l l 1 1

In the Excel interface,the Go To Special dialog enables you to select only cells with formulas,or only blank cells, or only the visible cells. Selecting visible cells only is excellent for grabbing the visible results of AutoFiltered data.

To simulate the Go To Special dialog in VBA, use the SpecialCells method.This enables you to act on cells that meet a certain criteria:

RangeObject.SpecialCells(Type, Value)

This method has two parameters: Type and Value.Type is one of the xlCellType constants: xlCellTypeAllFormatConditions xlCellTypeAllValidation xlCellTypeBlanks xlCellTypeComments xlCellTypeConstants xlCellTypeFormulas xlCellTypeLastCell xlCellTypeSameFormatConditions xlCellTypeSameValidation xlCellTypeVisible

Value is optional and can be one of the following:

xlErrors xlLogical xlNumbers xlTextValues.

0 0

Post a comment