What's the difference between .Dependents and .DirectDependents?

  • Thread starter Thread starter baobob
  • Start date Start date
DirectDependents are one level from the dependent cell
Dependents includes ALL levels.

Try this:

A1: 10
A2: =A1
A3: =A2

Select A1......Switch to the VBE immediate window
Enter: ? activecell.Dependents.Count
Return value = 2

Enter: ? activecell.DirectDependents.Count
Return value = 1

Does that help?
--------------------------

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)
 
Clearer explanation (hopefully):

• DirectDependents all cells that directly reference the target cell.

• Dependents includes all cells that reference the
target cell, directly or indirectly.

--------------------------

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)
 
You're welcome...I'm glad I could help.

--------------------------

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top