DirectDependents Property

Microsoft Excel Visual Basic

Returns a Range object that represents the range containing all the direct dependents of a cell. This can be a multiple selection (a union of Range objects) if there’s more than one dependent. Read-only Range object.

expression.DirectDependents

expression    Required. An expression that returns one of the objects in the Applies To list.

Remark

Note  The Direct Dependents property only works on the active sheet and can not trace remote references.

Example

This example selects the direct dependents of cell A1 on Sheet1.

Worksheets("Sheet1").Activate
Range("A1").DirectDependents.Select