Document.Protect Property (Word)

This documentation is preliminary and is subject to change.

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.

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

See also

Concepts

Document Object Members

Document Object