Table of contents
TOC
Collapse the table of content
Expand the table of content

WorkflowTask Object (Office)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

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.

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 

Methods

Name
Show

Properties

Name
Application
AssignedTo
CreatedBy
CreatedDate
Creator
Description
DueDate
Id
ListID
Name
WorkflowID

See also

Other resources

Object Model Reference

© 2017 Microsoft