ViewsSingle.Add method (Project)
Adds a ViewSingle object to a ViewsSingle collection.
Syntax
expression.Add (Name, Screen, ShowInMenu, Table, Filter, Group, HighlightFilt)
expression A variable that represents a 'ViewsSingle' object.
Parameters
Name | Required/Optional | Data type | Description |
---|---|---|---|
Name | Required | String | The name of the view. |
Screen | Optional | Long | The project view. Can be one of the PjViewScreen constants. The default value is pjGantt. |
ShowInMenu | Optional | Boolean | True if Project Server adds the single-pane view to the View menu. The default value is False. |
Table | Optional | Variant | Specifies the table to be used by the view. This value is ignored if the view specified with the Screen argument does not use tables. |
Filter | Optional | Variant | Specifies the filter to be used on the view. |
Group | Optional | Variant | Specifies the group to be used by the view. If a group is required for the view, but none is specified, the default is No Group. This value is ignored if the view specified with the Screen argument does not use groups. |
HighlightFilt | Optional | Boolean | True if the filter applied is a highlight filter. The default value is False. |
Return value
ViewSingle
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.