April 2006
Beginner
1114 pages
98h 16m
English
range.DirectPrecedents
Returns a Range object that represents the cell or cells that directly use the 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("G2")
r.DirectPrecedents.SelectRead now
Unlock full access