SchmiPi
SchmiPi

Reputation: 7

Get text from activeX textbox (VBA, powerpoint)

I have an activeX textbox in my PowerPoint presentation. During my presentation, I want to write a letter there. Afterward, I want to press a button which opens a messagebox with the letter from the textbox. Currently, my code is the following, but it doesn't work:

MsgBox ActivePresentation.Slides(SlideIndex).OLEObjects("tb1").Object.Text

Upvotes: 0

Views: 466

Answers (1)

Domenic
Domenic

Reputation: 8104

Try the following instead...

MsgBox ActivePresentation.Slides(SlideIndex).Shapes("tb1").OLEFormat.Object.Text

Upvotes: 2

Related Questions