|
Question : Trace dependents/precedents on multiple cells in excel (macro)
|
|
Hi,
How do I trace dependents on a section of multiple cells?
Lets say I highlight a set of 10 cells. Is there a macro that can do "Trace Dependents" on those cells? (Helpful to make sure I don't delete stuff that has dependents.
Thanks.
-Edward
|
|
Answer : Trace dependents/precedents on multiple cells in excel (macro)
|
|
If you don't want to hard code the cell references, this macro will do as your asking....
Sub GetPrecedents() Dim c As Range For Each c In Selection.Cells c.ShowDependents c.ShowPrecedents Next End Sub
Wayne
|
|
|