Document.Protect Property

Word Developer Reference

Returns or sets the protection type for the document associated with the specified routing slip. Read/write WdProtectionType.

Syntax

expression.Protect

expression   Required. A variable that represents a Document object.

Example

This example specifies the type of protection to use for the active document (only allows comments) and then routes it.

Visual Basic for Applications
  ActiveDocument.HasRoutingSlip = True
With ActiveDocument.RoutingSlip
    .Subject = "Status Doc"
    .Protect = wdAllowOnlyComments
    .AddRecipient Recipient:="Kim Johnson"
End With
ActiveDocument.Route

See Also