WorkbookBase.SendForReview(Object, Object, Object, Object) Method

Definition

Sends a workbook in an e-mail message for review to the specified recipients.

public void SendForReview (object recipients, object subject, object showMessage, object includeAttachment);
member this.SendForReview : obj * obj * obj * obj -> unit
Public Sub SendForReview (Optional recipients As Object, Optional subject As Object, Optional showMessage As Object, Optional includeAttachment As Object)

Parameters

recipients
Object

The people to whom to send the message. These can be unresolved names and aliases in an e-mail phone book or full e-mail addresses. Separate multiple recipients with a semicolon (;). If left blank and ShowMessage is false, you will receive an error message, and the message will not be sent.

subject
Object

The subject of the message. If left blank, the subject will be: Please review "filename ".

showMessage
Object

A value that indicates whether the message should be displayed when the method is executed. The default value is true. If set to false, the message is automatically sent to the recipients without first showing the message to the sender.

includeAttachment
Object

A value that indicates whether the message should include an attachment or a link to a server location. The default value is true. If set to false, the document must be stored at a shared location.

Examples

The following code example uses the SendForReview method to send the workbook in an e-mail to two recipients. The e-mail will have the default subject line and will include the workbook as an attachment. This example assumes that the recipient names resolve to valid e-mail addresses.

This example is for a document-level customization.

private void WorkbookSendForReview()
{
    this.SendForReview("someone@example.com",
        "Please review this proposal.", true, true);
}
Private Sub WorkbookSendForReview()
    Me.SendForReview("someone@example.com", _
        "Please review this proposal.", True, True)
End Sub

Remarks

This method starts a collaborative review cycle. Use the EndReview method to end a review cycle.

Optional Parameters

For information on optional parameters, see Optional Parameters in Office Solutions.

Applies to