Skip to content

Latest commit

 

History

History
54 lines (34 loc) · 1.51 KB

Office.WorkflowTemplate.md

File metadata and controls

54 lines (34 loc) · 1.51 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
WorkflowTemplate object (Office)
vbaof11.chm282000
vbaof11.chm282000
Office.WorkflowTemplate
965d0474-dd51-9b0e-b34c-a11f921ff410
01/29/2019
medium

WorkflowTemplate object (Office)

Represents one of the workflows available for the current document.

Remarks

A WorkflowTemplate object corresponds to one of the options displayed in the Start New Workflow dialog box. On a webpage, the workflow templates are displayed as a list of options.

Example

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

Sub DisplayWorkTemplates() 
Dim objWorkflowTemplates As WorkflowTemplates 
Dim objWorkflowTemplate As WorkflowTemplate 
Dim cnt As Integer 
 
Set objWorkflowTemplates = Document.GetWorkflowTemplates() 
 
For cnt = 1 To objWorkflowTemplates.Count 
 Debug.Print objWorkflowTemplate(cnt).Name 
Next 
 
Set objWorkflowTemplate = objWorkflowTemplates(1) 
objWorkflowTemplate.Show 
 
End Sub 

See also

[!includeSupport and feedback]