Results 1 to 3 of 3
  1. #1
    4 Star Lounger
    Join Date
    Jan 2001
    Location
    Illinois
    Posts
    552
    Thanks
    0
    Thanked 1 Time in 1 Post

    Macro for powerpoint (Powerpoint 2003)

    I have 2 powerpoint files. They have the same amount of slides. In the base.ppt i have a Title at the top of each slide. I want to copy all the titles into the other file - base2.ppt. A textbox exists in base2.ppt created through the master slide and I need a macro to copy the titles from base.ppt to base2.ppt. Thanks for the help!

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Macro for powerpoint (Powerpoint 2003)

    Try this:

    Sub CopyTitles()
    Dim ppt1 As Presentation
    Dim ppt2 As Presentation
    Dim i As Integer

    Set ppt1 = Presentations("Base.ppt")
    Set ppt2 = Presentations("Base2.ppt")

    For i = 1 To ppt1.Slides.Count
    ppt2.Slides(i).Shapes(1).TextFrame.TextRange.Text = _
    ppt1.Slides(i).Shapes(1).TextFrame.TextRange.Text
    Next i

    Set ppt2 = Nothing
    Set ppt1 = Nothing
    End Sub

    It may have to be tweaked.

  3. #3
    4 Star Lounger
    Join Date
    Jan 2001
    Location
    Illinois
    Posts
    552
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Macro for powerpoint (Powerpoint 2003)

    yes, worked perfectly. thanks very much

Posting Permissions

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