PrintOptions Object
TOC
Collapse the table of content
Expand the table of content

PrintOptions Object (PowerPoint)

Office 2013 and later
GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Contains print options for a presentation.

Note Note

Specifying the optional arguments From, To, Copies, and Collate for the PrintOut method sets the corresponding properties of the PrintOptions object.

Use the PrintOptions property to return the PrintOptions object. The following example prints two uncollated color copies of all the slides (whether visible or hidden) in the active presentation. The example also scales each slide to fit the printed page and frames each slide with a thin border.

With ActivePresentation 
    With .PrintOptions 
        .NumberOfCopies = 2 
        .Collate = False 
        .PrintColorType = ppPrintColor 
        .PrintHiddenSlides = True 
        .FitToPage = True 
        .FrameSlides = True 
        .OutputType = ppPrintOutputSlides 
    End With 
    .PrintOut 
End With

Use the RangeType property to specify whether to print the entire presentation or only a specified part of it. If you want to print only certain slides, set the RangeType property to ppPrintSlideRange, and use the Ranges property to specify which pages to print. The following example prints slides 1, 4, 5, and 6 in the active presentation

With ActivePresentation 
    With .PrintOptions 
        .RangeType = ppPrintSlideRange 
        With .Ranges 
            .Add 1, 1 
            .Add 4, 6 
        End With 
    End With 
    .PrintOut 
End With
Show:
© 2016 Microsoft