VBA - Reference Label in PowerPoint Presentation with UserForm

自作多情 提交于 2020-01-25 11:27:25

问题


I am attempting to use a VBA UserForm to edit an ActiveX label in a PowerPoint Presentation (which will serve as a textbox). I can't determine how to reference the label, however, and could use some direction. I have tried variations of Presentations("Combined Staff Agenda Template").Slides(0).Shapes("Date_Label").Value = LabelDate, but I still receive an error. The ActiveX label is on the first slide of the "Combined Staff Agenda Template" presentation, and is named "Date_Label".


回答1:


Presentations("Combined Staff Agenda Template").Slides(0) _
                     .Shapes("Date_Label").OLEFormat.Object.Caption = LabelDate


来源:https://stackoverflow.com/questions/22821389/vba-reference-label-in-powerpoint-presentation-with-userform

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!