NamedRange::DirectDependents Property

 

Gets a Microsoft.Office.Interop.Excel::Range that represents the range containing all the direct dependents of the NamedRange control.

Namespace:   Microsoft.Office.Tools.Excel
Assembly:  Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)

property Range^ DirectDependents {
	Range^ get();
}

Property Value

Type: Microsoft.Office.Interop.Excel::Range^

A Microsoft.Office.Interop.Excel::Range that represents the range containing all the direct dependents of the NamedRange control.

This property only works on the active sheet and cannot trace remote references.

The following code example creates a NamedRange and sets a reference in cell C1 to refer to the NamedRange. It then sets a reference in cell C2 to refer to cell C1. The code example then uses the DirectDependents property to select the direct dependent of the NamedRange, which is cell C1.

This example is for a document-level customization.

No code example is currently available or this language may not be supported.
Return to top
Show: