返回一个
Range 对象,该对象表示包含一个单元格的所有直接从属单元格的区域。如果有多个从属单元格,这可能有多个选择(多个
Range 对象)。
Range 类型,只读。
语法
表达式.DirectDependents
表达式 一个代表 Range 对象的变量。
说明
Direct Dependents 属性仅在活动工作表中有效,不能追踪远程引用。
示例
本示例选定工作表 sheet1 中单元格 A1 的直接从属单元格。
示例代码 |
Worksheets.Item("Sheet1").Activate()
Range("A1").DirectDependents.Select()
|
DirectDependents Property Return range containing direct dependants of specific cell