PowerPoint VBA Text Boxes
Hello all,
This is a fairly simple question for somebody whose done this before but for me it's outside my expertise. I'm using VBA in PowerPoint and I have a text box on slide 1 called txtBlue. I want to transfer the text in txtBlue to a text box on slide 2 called txtFinalBlue. What is the code to be able to copy the text in one text box on one slide to another text box on another slide? This is the problem I'm having and once I get past this step I'm home free. Any help is appreciated. Thanks. -KC
Re: PowerPoint VBA Text Boxes
KC, Welcome to the Forum :)
In this example I had a CommandButton on Slide2:
Code:
Private Sub CommandButton1_Click()
Me.txtFinalBlue.Text = Slide1.txtBlue.Text
End Sub
Bruce.
Re: PowerPoint VBA Text Boxes
Bruce,
I tried it out and it worked. I found this VB forum to be more helpful than the other one I generally use. Thanks for your help.
Re: PowerPoint VBA Text Boxes
Quote:
Originally Posted by Kchan26
Bruce,
I tried it out and it worked. I found this VB forum to be more helpful than the other one I generally use. Thanks for your help.
No worries KC.
Oh, BTW, this is the best forum ;)
Regards,
Bruce.
Re: PowerPoint VBA Text Boxes
Bruce,
I have one more question for you. At the start of this project I made sure my macros were enabled in powerpoint so that my VBA commands would work properly. However, after compeleting like 15 slides I noticed that my command buttons no longer worked. So I copied all the text boxes from one presentation and pasted it in a new presentation, which my presentation works properly again. But in the back of my mind I'm wondering if something is seriously wrong. Are you familiar with this problem? Thanks for any answers you may have. -KC
Re: PowerPoint VBA Text Boxes
Nevermind...I played around with the security options and my commands are working again.