Results 1 to 6 of 6

Thread: PowerPoint VBA Text Boxes

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2004
    Posts
    4

    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

  2. #2
    INXSIVE Bruce Fox's Avatar
    Join Date
    Sep 2001
    Location
    Melbourne, Australia
    Posts
    7,429

    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.

  3. #3

    Thread Starter
    New Member
    Join Date
    Dec 2004
    Posts
    4

    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.

  4. #4
    INXSIVE Bruce Fox's Avatar
    Join Date
    Sep 2001
    Location
    Melbourne, Australia
    Posts
    7,429

    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.
    Last edited by Bruce Fox; Dec 16th, 2004 at 02:59 PM.

  5. #5

    Thread Starter
    New Member
    Join Date
    Dec 2004
    Posts
    4

    Exclamation 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

  6. #6

    Thread Starter
    New Member
    Join Date
    Dec 2004
    Posts
    4

    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
  •  



Click Here to Expand Forum to Full Width