Skip to content

Files

Latest commit

 

History

History
79 lines (45 loc) · 2.88 KB

PowerPoint.Presentation.PrintOut.md

File metadata and controls

79 lines (45 loc) · 2.88 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Presentation.PrintOut method (PowerPoint)
vbapp10.chm583034
vbapp10.chm583034
PowerPoint.Presentation.PrintOut
57685390-43c1-4bd4-d2ee-ba34641e34c5
06/08/2017
medium

Presentation.PrintOut method (PowerPoint)

Prints the specified presentation.

Syntax

expression.PrintOut (From, To, PrintToFile, Copies, Collate)

expression A variable that represents a Presentation object.

Parameters

Name Required/Optional Data type Description
From Optional Integer The number of the first page to be printed. If this argument is omitted, printing starts at the beginning of the presentation. Specifying the To and From arguments sets the contents of the PrintRanges object and sets the value of the RangeType property for the presentation.
To Optional Integer The number of the last page to be printed. If this argument is omitted, printing continues to the end of the presentation. Specifying the To and From arguments sets the contents of the PrintRanges object and sets the value of the RangeType property for the presentation.
PrintToFile Optional String The name of the file to print to. If you specify this argument, the file is printed to a file rather than sent to a printer. If this argument is omitted, the file is sent to a printer.
Copies Optional Integer The number of copies to be printed. If this argument is omitted, only one copy is printed. Specifying this argument sets the value of the NumberOfCopiesproperty.
Collate Optional MsoTriState If this argument is omitted, multiple copies are collated. Specifying this argument sets the value of the Collate property.

Remarks

The Collate parameter value can be one of these MsoTriState constants.

Constant Description
msoFalse Prints all copies of one page before printing the first copy of the next page.
msoTrue Prints a complete copy of the presentation before the first page of the next copy is printed.

Example

This example prints two uncollated copies of each slide—whether visible or hidden—from slide two to slide five in the active presentation.

With Application.ActivePresentation

    .PrintOptions.PrintHiddenSlides = True

    .PrintOut From:=2, To:=5, Copies:=2, Collate:=msoFalse

End With

This example prints a single copy of all slides in the active presentation to the file Testprnt.prn.

Application.ActivePresentation.PrintOut PrintToFile:="TestPrnt"

See also

Presentation Object

[!includeSupport and feedback]