Presentations("Combined Staff Agenda Template").Slides(0) _
.Shapes("Date_Label").OLEFormat.Object.Caption = LabelDate
VBA - Reference Label in PowerPoint Presentation with UserForm
-
26-06-2023 - |
سؤال
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".
المحلول
لا تنتمي إلى StackOverflow