Enabled Property

Microsoft Publisher Visual Basic

expression.Enabled

expression    Required. An expression that returns a WizardProperty object.

Example

This example displays the name of each enabled wizard property in the active publication.

Sub SetEnabledProperty()
    Dim wizProperty As WizardProperty
    For Each wizProperty In ActiveDocument.Wizard.Properties
        If wizProperty.Enabled = True Then
            MsgBox "The name of the wizard property is " & wizProperty.Name
        End If
    Next
End Sub