Share via


Application.Form Method

Project Developer Reference

Displays a custom form. The Form method produces an error if a resource form is specified when the active view is a task view, and vice versa.

Syntax

expression.Form(Name)

expression   A variable that represents an Application object.

Parameters

Name Required/Optional Data Type Description
Name Optional String The name of a custom form. The default is a task form when the active view is a task view, and a resource form when the active view is a resource view.

Return Value
Boolean

Example
The following example displays the Cost Tracking form.

Visual Basic for Applications
  Sub DisplayCostTrackingForm
    Form("Cost Tracking")
End Sub

See Also