Name

range.DirectDependents

Synopsis

Returns a Range object that represents the cell or cells whose values depend directly on cells in the specified range. If cell F2 contains a formula that uses cell B2, and cell G2 contains a formula that uses cell F2, the following code selects only cell F2:

Dim r As Range
 
Set r = ActiveSheet.Range("B2")
r.DirectDependents.Select

Get Programming Excel with VBA and .NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.