Syntax

expression.Status

expression Required. A variable that represents a object.

Remarks

The shared workspace task schema on the server can be customized. Customization of the schema may affect the task status enumeration when the Add or Save method is called. Status property values are mapped as follows:

Example

The following example displays a list of all tasks in the current shared workspace whose status is not set to Complete.

Visual Basic for Applications
 Dim swsTask As Office.SharedWorkspaceTask Dim strTaskStatus As String For Each swsTask In ActiveWorkbook.SharedWorkspace.Tasks If swsTask.Status <> msoSharedWorkspaceTaskStatusCompleted Then strTaskStatus = strTaskStatus & swsTask.Title & vbCrLf End If Next MsgBox "The following tasks have not been completed:" & vbCrLf & _ strTaskStatus, vbInformation + vbOKOnly, "Incomplete Tasks" Set swsTask = Nothing 

See also: