|
-
Dec 15th, 2004, 02:52 PM
#1
Thread Starter
New Member
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
-
Dec 15th, 2004, 08:43 PM
#2
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.
Last edited by Bruce Fox; Dec 15th, 2004 at 08:46 PM.
-
Dec 16th, 2004, 09:43 AM
#3
Thread Starter
New Member
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.
-
Dec 16th, 2004, 02:54 PM
#4
Re: PowerPoint VBA Text Boxes
 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.
Last edited by Bruce Fox; Dec 16th, 2004 at 02:59 PM.
-
Dec 17th, 2004, 03:32 PM
#5
Thread Starter
New Member
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
-
Dec 17th, 2004, 03:42 PM
#6
Thread Starter
New Member
Re: PowerPoint VBA Text Boxes
Nevermind...I played around with the security options and my commands are working again.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|