WizardProperties.FindPropertyById method (Publisher)

Returns a WizardProperty object, based on the specified ID, from the collection of wizard properties associated with a publication design or a Design Gallery object's wizard.

Syntax

expression.FindPropertyById (ID)

expression A variable that represents a WizardProperties object.

Parameters

Name Required/Optional Data type Description
ID Required Long The ID of the wizard property to return; corresponds to the ID property of the WizardProperty object.

Return value

WizardProperty

Example

The following example changes the settings of the current publication design (Newsletter Wizard) so that the publication has a region dedicated to the customer's address (Customer Address).

Sub SetWizardProperties 
 Dim wizTemp As Wizard 
 Dim wizproTemp As WizardProperty 
 
 Set wizTemp = ActiveDocument.Wizard 
 
 With wizTemp.Properties 
 Set wizproTemp = .FindPropertyById(ID:=901) 
 wizproTemp.CurrentValueId = 1 
 End With 
 
End Sub

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.