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

WorkflowTemplates Object (Office)

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

Represents a collection of WorkflowTemplate objects.

Example

The following example displays the name of each workflow template in the current document and then displays 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 

Properties

Name
Application
Count
Creator

See also

Other resources

Object Model Reference

© 2017 Microsoft