This documentation is archived and is not being maintained.

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


expression.ChangeDocument(Wizard, Design)

expression   A variable that represents a Document object.


NameRequired/OptionalData TypeDescription
WizardRequiredPbWizardThe type of wizard. See Remarks for possible values.
DesignOptionalLongThe design type.


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


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