Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2014
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. Sub ExportSlidesToIndividualPDF()
  2. Dim oPPT As Presentation, oSlide As Slide
  3. Dim sPath As String, sExt As String
  4.  
  5. Set oPPT = ActivePresentation
  6. sPath = oPPT.FullName & "_Slide_"
  7. sExt = ".pdf"
  8.  
  9. For Each oSlide In oPPT.Slides
  10. i = oSlide.SlideNumber
  11. oSlide.Select
  12. oPPT.ExportAsFixedFormat _
  13. Path:=sPath & i & sExt, _
  14. FixedFormatType:=ppFixedFormatTypePDF, _
  15. RangeType:=ppPrintSelection
  16. Next
  17. Set oPPT = Nothing
  18. End Sub
  19.  
  20. Sub ExportSlidesToIndividualPDF()
  21. Dim oPPT As Presentation, oSlide As Slide
  22. Dim sPath As String, sExt As String
  23.  
  24. Set oPPT = ActivePresentation
  25.  
  26. sExt = ".pdf"
  27.  
  28. For Each oSlide In oPPT.Slides
  29. '## Retrieve the recipient's name from the shape and append it to the exported path:
  30. sPath = oPPT.FullName & oSlide.Shapes(1).TextFrame.TextRange.Text
  31. i = oSlide.SlideNumber
  32. oSlide.Select
  33. oPPT.ExportAsFixedFormat _
  34. Path:=sPath & sExt, _
  35. FixedFormatType:=ppFixedFormatTypePDF, _
  36. RangeType:=ppPrintSelection
  37. Next
  38. Set oPPT = Nothing
  39. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement