WorkflowTask.Show method (Office)

Displays a workflow task edit user interface for the specified WorkflowTask object.

Syntax

expression.Show

expression An expression that returns a WorkflowTask object.

Return value

Integer

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.

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

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.