据我了解,此代码仅“抓取”活动窗口中的第一个形状并轻推它:
设置oShape = oSlide.Shapes(1)
oShape.Left = oShape.Left + 5
如何“抓住”窗口中的所有形状并立即轻推它们?
答案 0 :(得分:4)
您可以迭代当前幻灯片的Shapes
集合来设置每个幻灯片。
Dim oShape As Shape
For Each oShape In oSlide.Shapes
oShape.Left = oShape.Left + 5
Next