Share via


TaskItem.StatusReport Method (Outlook)

Sends a status report to all Cc recipients (recipients returned by the StatusUpdateRecipients property) with the current status for the task and returns an Object representing the status report.

Syntax

expression .StatusReport

expression A variable that represents a TaskItem object.

Return Value

An Object value that represents the status report.

Example

This Visual Basic for Applications (VBA) example uses the StatusReport method to report the status of the currently open task.

Sub SendStatusReport() 
 Dim myTask As Outlook.TaskItem 
 Dim myinspector As Outlook.Inspector 
 Dim myReport As Object 
 
 Set myinspector = Application.ActiveInspector 
 If Not TypeName(myinspector) = "Nothing" Then 
 If TypeName(myinspector.CurrentItem) = "TaskItem" Then 
 Set myTask = myinspector.CurrentItem 
 Set myReport = myTask.StatusReport 
 myReport.Send 
 Else 
 MsgBox "No task item is currently open." 
 End If 
 Else 
 MsgBox "No inspector is currently open." 
 End If 
End Sub

See Also

Concepts

TaskItem Object Members

TaskItem Object