Skip to content
本页内容

BottomRightCell (属性)

返回一个 Range 对象,它代表位于该对象右下角下方的单元格。只读。

示例

python
#本示例显示第一张工作表中第一个形状右下角下的单元格的值
def test():
    shapes = Application.Worksheets.Item(1).Shapes
    print(shapes.Item(1).BottomRightCell.Value2)
python
#本示例显示活动工作表中第一个形状右下角下的单元格的地址,将形状高度缩小至一半,并再次显示形状右下角下的单元格的地址
def test():
    shapes = ActiveSheet.Shapes
    range = shapes.Item(1).BottomRightCell
    print(range.Address())
    shapes.Item(1).Height = shapes.Item(1).Height / 2
    newRange = shapes.Item(1).BottomRightCell
    print(newRange.Address())