Name

range.Dependents

Synopsis

Returns a Range object that represents the cell or cells whose values depend directly or indirectly 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 both cell F2 and cell G2:

Dim r As Range
 
Set r = ActiveSheet.Range("B2")
r.Dependents.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.