StatusReport Method
Collapse the table of content
Expand the table of content

TaskItem.StatusReport Method (Outlook)

Office 2013 and later

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

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.

expression .StatusReport

expression A variable that represents a TaskItem object.

Return Value

An Object value that represents the status report.

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 
 MsgBox "No task item is currently open." 
 End If 
 MsgBox "No inspector is currently open." 
 End If 
End Sub
© 2016 Microsoft