ViewEditCombination Method
Creates, edits, or copies a combination view.
Syntax
expression**.ViewEditCombination(Name, Create, NewName, TopView, BottomView, ShowInMenu)**
*expression * Optional. An expression that returns an Application object.
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 Microsoft Office Project 2003 should create a new two-pane view. If NewName is Empty , 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 Empty 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 will display in the lower pane.
BottomView Optional String. The name of the view to display in the lower pane. The view specified by Name will display in the upper pane.
ShowInMenu Optional Boolean. True if the view name appears on the View menu. The default value is False.
Example
The following example creates a new 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
Applies to | Application Object
See Also | ConsolidateProjects Method | ResourceViewList Property | TaskViewList Property | ViewApply Method | ViewEditSingle Method | ViewList Property | Views Method