Table of contents
Collapse the table of content
Expand the table of content

PrintOptions.Ranges Property (PowerPoint)

office 365 dev account|Last Updated: 6/12/2017
1 Contributor

Returns the PrintRanges object, which represents the ranges of slides in the presentation to be printed. Read-only.


expression. Ranges

expression A variable that represents a PrintOptions object.

Return Value



If you don't want to print an entire presentation, you must use the Add method to create a PrintRange object for each consecutive run of slides you want to print. For example, if you want to print slide 1, slides 3 through 5, and slides 8 and 9 in a specified presentation, you must create three PrintRange objects: one that represents slide 1; one that represents slides 3 through 5; and one that represents slides 8 and 9. For more information, see the example for this property.

The RangeType property must be set to ppPrintSlideRange for the ranges in the PrintRanges collection to be applied.

To clear all the existing print ranges from the PrintRanges collection, use the ClearAll method.

Specifying a value for the To and From arguments of the PrintOut method sets the contents of the PrintRanges object.


This example prints slide 1, slides 3 through 5, and slides 8 and 9 in the active presentation.

With ActivePresentation

    With .PrintOptions

        .RangeType = ppPrintSlideRange

        With .Ranges

            .Add 1, 1

            .Add 3, 5

            .Add 8, 9

        End With

    End With


End With

See also


PrintOptions Object

© 2018 Microsoft