Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 100
Default What's the difference between .Dependents and .DirectDependents?

Of a range, that is.

Thanks.

***
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,118
Default What's the difference between .Dependents and .DirectDependents?

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)

wrote in message
...
Of a range, that is.

Thanks.

***



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,118
Default What's the difference between .Dependents and .DirectDependents?

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)


"Ron Coderre" wrote in message
...
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)

wrote in message
...
Of a range, that is.

Thanks.

***





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 100
Default What's the difference between .Dependents and .DirectDependents?

Ron:

Thanks very much for your reply.

That's very clear.

***
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,118
Default What's the difference between .Dependents and .DirectDependents?

You're welcome...I'm glad I could help.

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

Regards,

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

wrote in message
...
Ron:

Thanks very much for your reply.

That's very clear.

***



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
UDF FOR DEPENDENTS Faraz A. Qureshi Excel Discussion (Misc queries) 0 June 26th 09 05:02 AM
trace all dependents Steve Excel Discussion (Misc queries) 1 February 11th 09 03:52 PM
Finding when there are no directdependents [email protected] Excel Programming 1 June 19th 06 10:46 PM
charting a difference of 2 columns' w/o adding a difference column Wab Charts and Charting in Excel 4 July 27th 05 02:37 AM
Dependents kt Excel Programming 1 June 11th 05 03:10 AM


All times are GMT +1. The time now is 06:18 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"