On the debug toolbar, you can click a button that shows you directed arrows of cells that are directly called by the selected cell (I’m calling these direct precedents the ‘first layer’). However, when you use the Precedents property on a cell, it returns all of the cells on the sheet that the cell is dependent upon.
For example, I have cell DT836 with the formula:
=DP836+DR836+DS836
“Trace Precedents” Debug toolbar shows a nice blue arrow connecting those three cells to cell DT836.
Range("DT836").Precedents contains a 70,000+ cell range with (as far as I can tell) no way to distinguish between how distant a dependent is from its precedent.
Is there a way to discern this using VBA?
It turns out there is a different property for ranges that tells you this,
DirectPrecidents.I had thought that it would be a property of the precedents, not a separate property in and of itself.