Skip to content

Latest commit

 

History

History
50 lines (32 loc) · 1.22 KB

Office.WorkflowTask.md

File metadata and controls

50 lines (32 loc) · 1.22 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
WorkflowTask object (Office)
vbaof11.chm280000
vbaof11.chm280000
Office.WorkflowTask
9d17947e-f12a-2f97-7888-8d5ec9f85011
01/29/2019
medium

WorkflowTask object (Office)

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 

See also

[!includeSupport and feedback]