Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

WorkflowTemplate Object

Office 2007
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 Web page, 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 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.

Visual Basic for Applications
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



Community Additions

Show:
© 2014 Microsoft