返回或设置指定传送名单的相关文档的保护类型。WdProtectionType,可读写。
WdProtectionType 可以是下列 WdProtectionType 常量之一: |
wdAllowOnlyComments |
wdAllowOnlyFormFields |
wdAllowOnlyRevisions |
wdNoProtection |
expression.Protect
expression 必需。该表达式返回一个 RoutingSlip 对象。
本示例先保护活动文档(只允许备注),然后传送该文档。
ActiveDocument.HasRoutingSlip = True
With ActiveDocument.RoutingSlip
.Subject = "Status Doc"
.Protect = wdAllowOnlyComments
.AddRecipient Recipient:="Kim Johnson"
End With
ActiveDocument.Route