ReturnWhenDone Property

Microsoft Word Visual Basic

ReturnWhenDone Property

       

True if the document associated with the specified routing slip is sent back to the original sender when the routing is finished. Read/write Boolean before routing begins; read-only Boolean while routing is in progress.

expression.ReturnWhenDone

expression   Required. An expression that returns a RoutingSlip object.

Example

This example sets the routing slip for Sales 1995.doc to return the document back to the original sender after the last recipient reviews it.

If Documents("Sales 1995.doc").HasRoutingSlip = True Then
    With Documents("Sales 1995.doc").RoutingSlip
        .Delivery = wdOneAfterAnother
        .ReturnWhenDone = True
    End With
End If