How to name an object within a PowerPoint slide?

前端 未结 5 2237
滥情空心
滥情空心 2020-12-02 16:42

So I know how to name a textbox, or a like object in PowerPoint with VB, but I was wondering if there was a way to name objects through the Ribbon (PowerPoint 2007). For ins

5条回答
  •  感动是毒
    2020-12-02 17:22

    While the answer above is correct I would not recommend you to change the name in order to rely on it in the code.

    Names are tricky. They can change. You should use the ShapeId and SlideId.

    Especially beware to change the name of a shape programmatically since PowerPoint relies on the name and it might hinder its regular operation.

提交回复
热议问题