Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在工作表中有许多嵌入的对象(形状),并且图标显示在单元格内。我如何知道显示形状对象的单元格范围。
示例:当我选择 aB2然后在 中选择对象(形状)时 B17,我在Cell.Address它显示的内容上进行查询B2- 如何将单元格地址设为B17?
B2
B17
Cell.Address
谢谢
您可以使用Shape属性.TopLeftCell并.BottomRightCell返回形状重叠的矩形范围的范围。
Shape
.TopLeftCell
.BottomRightCell
在您的示例中,YourShape.TopLeftCell.Address应该返回$B$17
YourShape.TopLeftCell.Address
$B$17