Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

WorkflowTask Object

Office 2007
Represents a single workflow task in a WorkflowTasks collection.

Example

The following example displays the name of each workflow task in the current document and then displays the workflow task edit user interface for a specific task. It should be noted that calling the GetWorkflowTasks method involves a round-trip to the server.

Visual Basic for Applications
Sub DisplayWorkTask()
Dim objWorkflowTasks As WorkflowTasks
Dim objWorkflowTask As WorkflowTask
Dim cnt As Integer

Set objWorkflowTasks = Document.GetWorkflowTasks() 

For cnt = 1 To objWorkflowTasks.Count
   Debug.Print objWorkflowTask(cnt).Name
Next 

Set objWorkflowTask = objWorkflowTasks(1)
objWorkflowTask.Show

End Sub



Community Additions

Show:
© 2014 Microsoft