主题
Placement (属性)
返回或设置一个 XlPlacement 值,它代表对象附加到对象下面的单元格的方式。
示例
python
#本示例设置活动工作表的第一个形状为可自由浮动(既不随下方单元格移动,也不随其改变大小)
def test():
shape = ActiveSheet.Shapes.Item(2)
shape.Placement = xlFreeFloating
python
#本示例设置第一个工作表的第一个形状随单元格移动和调整大小
def test():
shape = Application.Worksheets.Item(1).Shapes.Item(1)
shape.Placement = xlMoveAndSize