Düzenle

Aracılığıyla paylaş


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

TaskItem Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.