Document.ChangeDocument Method (Publisher)

Changes the current publication to one that uses the wizard, and optionally the design, that you specify.

Version Information

Version Added: Publisher 2007

Syntax

expression .ChangeDocument(Wizard, Design)

expression A variable that represents a Document object.

Parameters

Name

Required/Optional

Data Type

Description

Wizard

Required

PbWizard

The type of wizard. See Remarks for possible values.

Design

Optional

Long

The design type.

Remarks

Possible values for the Wizard parameter are declared in the PbWizard enumeration in the Publisher type library.

Example

The following Microsoft Visual Basic for Applications (VBA) macro shows how to use the ChangeDocument method to change the wizard used by the current publicaton to a brochure.

Public Sub ChangeDocument_Example() 
 
 ThisDocument.ChangeDocument pbWizardBrochures 
 
End Sub