Export (0) Print
Expand All

Document.ChangeDocument Method

Office 2007
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

NameRequired/OptionalData TypeDescription
WizardRequiredPbWizardThe type of wizard. See Remarks for possible values.
DesignOptionalLongThe 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.

Visual Basic for Applications
Public Sub ChangeDocument_Example()

    ThisDocument.ChangeDocument pbWizardBrochures

End Sub



Community Additions

ADD
Show:
© 2014 Microsoft