全部显示

Protect 属性

       

返回或设置指定传送名单的相关文档的保护类型。WdProtectionType,可读写。

expression.Protect

expression   必需。该表达式返回一个 RoutingSlip 对象。

示例

本示例先保护活动文档(只允许备注),然后传送该文档。

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