Document.PrintOutEx Method (Publisher)

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.

Prints all or part of the specified publication.

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

expression A variable that represents a Document object.

Parameters

Name

Required/Optional

Data Type

Description

From

Optional

Long

The starting page number.

To

Optional

Long

The ending page number.

PrintToFile

Optional

String

The path and file name of a document to be printed to a file.

Copies

Optional

Long

The number of copies to be printed.

Collate

Optional

Boolean

When printing multiple copies of a document, True to print all pages of the document before printing the next copy.

PrintStyle

Optional

PbPrintStyle

The print style to use. See Remarks for possible values.

The PrintStyle parameter can be one of the PbPrintStyle constants declared in the Microsoft Publisher type library.

If PrintStyle is pbPrintStyleMultipleCopiesPerSheet or pbPrintStyleMultiplePagesPerSheet, Publisher ignores any value you pass for the Collate parameter.

This example prints the active publication.

Sub PrintActivePublication() 
 ThisDocument.PrintOutEx 
End Sub
Show: