Hello,
I have long/ large presentations that I split and archive in a slide library. The script I am currently using (John Wilson — pptalchemy.co.uk) creates the individual slides with generic file name with cumulative numbers. I'd like to run one macro to split and name the files with the 'Title' from each slide. I had limited success getting the 'Title' to be pulled from the presentation via – Shape("Title 1"). TextFrame. The files were created but did not split. I have the most basic grasp of VBA so any help would be greatly appreciated.
Sub SplitCards() Dim i As Integer Dim osource As Presentation Dim otarget As Presentation 'SAVE A COPY ActivePresentation.SaveCopyAs (Environ("TEMP") & "\tempfile.pptx") Set osource = Presentations.Open(Environ("TEMP") & "\tempfile.pptx") For i = osource.Slides.Count To 1 Step -1 osource.Slides(i).Copy Set otarget = Presentations.Add(msoTrue) otarget.Slides.Paste 'FOLLOW DESIGN otarget.Slides(1).Design = osource.Slides(i).Design otarget.Slides(1).ColorScheme = osource.Slides(i).ColorScheme osource.Slides(i).Delete 'SAVE THE ONE SLIDE PRES otarget.SaveAs (Environ("USERPROFILE") & "\Desktop\Slide " & CStr(i)) & sExt otarget.Close Set otarget = Nothing Next i osource.Close 'REMOVE THE TEMP FILE Kill (Environ("TEMP") & "\tempfile.pptx") Set osource = Nothing End Sub



Reply With Quote
After running it multiple times, over the year, I notice if nothing (no thumbnail) is selected in the 'Normal View' pane the script runs and exports every slide. If one thumbnail is selected, it skips slide two. I am actually fine with that.
