Share via


Wizard.SetId Method

Publisher Developer Reference

Specifies the type of the wizard (template) to which to convert the current publication type.

Version Information
 Version Added:  Publisher 2007

Syntax

expression.SetId(ID)

expression   A variable that represents a Wizard object.

Parameters

Name Required/Optional Data Type Description
ID Required Long ID of the wizard (template) to which to convert the current publication.

Remarks

When Microsoft Office Publisher converts the publication type, it automatically maps elements of the existing publication type to the new publication type as best as possible. Any elements that it cannot map appear under Extra Content in the Format Publication task pane in the Publisher user interface; you can add them to the new publication manually by dragging them onto the publication page.

Example

The following Microsoft Visual Basic for Applications (VBA) macro shows how to use the SetId method to convert the current publication type to a brochure.

Visual Basic for Applications
  Public Sub SetId_Example()
Wizard.SetId (pbWizardBrochures)

End Sub

See Also