Protect Property

Applies To

RoutingSlip object.

Description

Returns or sets the protection type for the document associated with the specified routing slip. Can be one of the following WdProtectionType constants: wdAllowOnlyComments, wdAllowOnlyFormFields, wdAllowOnlyRevisions, or wdNoProtection. Read/write Long.

See Also

Protect method, ProtectionType property, UnProtect method.

Example

If the active document has a routing slip, this example protects the document (only allows comments) and then routes it.

With ActiveDocument
    If .HasRoutingSlip = True Then
        .RoutingSlip.Protect = wdAllowOnlyComments
        .Route
    End If
End With