Export (0) Print
Expand All
Expand Minimize

Document.Protect Property

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



Community Additions

ADD
Show:
© 2014 Microsoft