Excel to PowerPoint to PDF

Mississippi Girl

Board Regular
Joined
Oct 27, 2005
Messages
155
We have a file that is generated in Excel, linked in to PowerPoint, and now the lovely folks above all of us worker-bees want to view their specific PowerPoint slides in PDF, but they do not want to have to be bothered looking at anyone else's information.

I have the following that saves each slide as it's own PDF file, but I don't really need every slide in the presentation. How can I allow the person running the module to select the slides that need to be PDF'd? Since the range of slides can vary from month to month, I was thinking a message box with the starting and ending slide numbers, but I'm not sure how to do that. Can you help??

Code:
Sub ExportSlidesToIndividualPDF()
Dim oPPT As Presentation, oSlide As Slide
Dim sExt As String


Set oPPT = ActivePresentation
sExt = ".pdf"

For Each oSlide In oPPT.Slides
    i = oSlide.SlideNumber
    oSlide.Select
    oPPT.ExportAsFixedFormat _
        Path:="N:\_BA21.N\CFO Monthly Status\PDF Files\" & "_Slide_" & i & sExt, _
        FixedFormatType:=ppFixedFormatTypePDF, _
        RangeType:=ppPrintSelection
 
Next
Set oPPT = Nothing
End Sub
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

Forum statistics

Threads
1,214,523
Messages
6,120,042
Members
448,940
Latest member
mdusw

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top