Skip to content

Latest commit

 

History

History
66 lines (36 loc) · 1.27 KB

PowerPoint.PrintRanges.ClearAll.md

File metadata and controls

66 lines (36 loc) · 1.27 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
PrintRanges.ClearAll method (PowerPoint)
vbapp10.chm518003
vbapp10.chm518003
PowerPoint.PrintRanges.ClearAll
3e177e7c-486e-a938-cf80-2f13b018094a
06/08/2017
medium

PrintRanges.ClearAll method (PowerPoint)

Clears all the print ranges from the PrintRanges collection. Use the Add method of the PrintRanges collection to add print ranges to the collection.

Syntax

expression. ClearAll

expression A variable that represents a PrintRanges object.

Return value

Nothing

Example

This example clears any previously defined print ranges in the active presentation; creates new print ranges that contain slide 1, slides 3 through 5, and slides 8 and 9; prints the newly defined slide ranges; and then clears the new print ranges.

With ActivePresentation.PrintOptions

    .RangeType = ppPrintSlideRange

    With .Ranges

        .ClearAll

        .Add 1, 1

        .Add 3, 5

        .Add 8, 9

        .Parent.Parent.PrintOut

        .ClearAll

    End With

End With

See also

PrintRanges Object

[!includeSupport and feedback]