Application.ViewEditCombination method (Project)
Creates, edits, or copies a combination view.
Syntax
expression. ViewEditCombination
( _Name_
, _Create_
, _NewName_
, _TopView_
, _BottomView_
, _ShowInMenu_
)
expression A variable that represents an Application object.
Parameters
Name | Required/Optional | Data type | Description |
---|---|---|---|
Name | Optional | String | The name of a two-pane view to edit, create, or copy. The default is the name of the active view. |
Create | Optional | Boolean | True if Project creates a two-pane view. If NewName is an empty string (""), the new view is given the name specified with Name. Otherwise, the new view is a copy of the view specified with Name and is given the name specified with NewName. The default value is False. |
NewName | Optional | String | A new name for the view specified with Name (Create is False) or a name for the new view just created (Create is True). If NewName is an empty string and Create is False, the view specified with Name retains its current name. The default value is False. |
TopView | Optional | String | The name of the view to display in the upper pane. The view specified by Name displays in the lower pane. |
BottomView | Optional | String | The name of the view to display in the lower pane. The view specified by Name displays in the upper pane. |
ShowInMenu | Optional | Boolean | True if the view name appears on the Other Views drop-down menu. The default value is False. |
Return value
Boolean
Example
The following example creates a combination view with the Resource Sheet in the upper pane and the Resource Graph in the lower pane.
Sub CheckResourcesView()
ViewEditCombination Name:="Check Resources View", Create:=True, _
TopView:="Resource Sheet", BottomView:="Resource Graph"
End Sub
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.