Results 1 to 6 of 6
  1. #1
    Lounger
    Join Date
    Jan 2003
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Copying Textbox text to another slide (2002)

    This should be simple but it is beyond me.

    I have text in a Textbox, named tb1, on slide 4 that want to copy to a Textbox, named tb3, on slide 5.

    Surly this is one line of code?

    Thanks in advance.

  2. #2
    Plutonium Lounger
    Join Date
    Nov 2001
    Posts
    10,550
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Re: Copying Textbox text to another slide (2002)

    <code>
    activepresentation.Slides(5).Shapes("tb3").TextFra me.TextRange.Text =
    activepresentation.Slides(4).Shapes("tb1").TextFra me.TextRange.Text
    </code>

    StuartR

  3. #3
    Lounger
    Join Date
    Jan 2003
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Copying Textbox text to another slide (2002)

    I thought it should be something like that but it does not work, I think, because I am using a Control Textbox, form the Control Toolbox and not and Autoshape Textbox.

    The error message is "TextFrame (Unknown Member): Invalid request. This type of shape cannot have a Textrange.

    I'm using a Control Textbox as I want text to be typed into a running Slide Show.

    A second dose of your help would be greatly appreciated.

  4. #4
    Plutonium Lounger
    Join Date
    Nov 2001
    Posts
    10,550
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Re: Copying Textbox text to another slide (2002)

    This is quite a long line, but seems to do what you asked for...

    <code>
    ActivePresentation.Slides(5).Shapes("tb3").OLEForm at.Object.Text = _
    ActivePresentation.Slides(4).Shapes("tb1").OLEForm at.Object.Text
    </code>

    StuartR

  5. #5
    Lounger
    Join Date
    Jan 2003
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Copying Textbox text to another slide (2002)

    Wonderful, wonderful, wonderful. Stuart, if you were female, I'd kiss you. In fact, I might just make an exception ...

    I've said it before, the lounge is a wonderful place and stunningly quick.

    (I HATE VBA)

  6. #6
    Plutonium Lounger
    Join Date
    Nov 2001
    Posts
    10,550
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Re: Copying Textbox text to another slide (2002)

    Thanks for the offer, but you'd probably find the beard too scratchy!

    I didn't know how to do this either, so I searched google for "powerpoint forms textbox properties vba" and found an example at http://skp.mvps.org/ppt00042.htm

    StuartR

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •