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