Skip to content

Latest commit

 

History

History
57 lines (37 loc) · 2.25 KB

Project.Application.ViewEditCombination.md

File metadata and controls

57 lines (37 loc) · 2.25 KB
title keywords f1_keywords ms.service api_name ms.assetid ms.date ms.localizationpriority
Application.ViewEditCombination method (Project)
vbapj.chm304
vbapj.chm304
project-server
Project.Application.ViewEditCombination
f5d49a1d-7ead-e704-7be2-8d06e54e221f
06/08/2017
medium

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

[!includeSupport and feedback]