Range.ColumnDifferences Method
Returns a Range object that represents all the cells whose contents are different from the comparison cell in each column.
Syntax
expression.ColumnDifferences(Comparison)
expression A variable that represents a Range object.
Parameters
| Name | Required/Optional | Data Type | Description |
|---|---|---|---|
| Comparison | Required | Variant | A single cell to compare to the specified range. |
Return Value
Range
Example
This example selects the cells in column A on Sheet1 whose contents are different from cell A4.
| Visual Basic for Applications |
|---|
|