Table of contents
TOC
Collapse the table of content
Expand the table of content

Application.ViewEditSingle Method (Project)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Creates, edits, or copies a single-pane view.

Syntax

expression. ViewEditSingle( ** Name, ** Create, ** NewName, ** Screen, ** ShowInMenu, ** HighlightFilter, ** Table, ** Filter, ** Group** )

expression A variable that represents an Application object.

Parameters

NameRequired/OptionalData TypeDescription
NameOptionalStringThe name of a single-pane view to edit, create, or copy. The default is the name of the active view.
CreateOptionalBooleanTrue if Project creates a single-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.
NewNameOptionalStringA 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.
ScreenOptionalLongA constant specifying the view to display. Can be one of the PjViewScreen constants. The default value is pjGantt
ShowInMenuOptionalBooleanTrue if the view name appears on the Other Views drop-down menu. The default value is False.
HighlightFilterOptionalBooleanTrue if Project should highlight filtered items. The default value is False.
TableOptionalStringThe name of a table to display in the view. Required for a new view.
FilterOptionalStringThe name of a filter to apply to the view. Required for a new view.
GroupOptionalStringThe name of a group to apply to the view. If a group is required for the view, but none is specified, the default value is "No Group". The Group value is ignored if the view specified with the Screen argument does not use groups.

Return Value

Boolean

Example

The following example creates a new view for tasks currently in progress and grouped by duration.

Sub DisplayMyTasks() 
 ViewEditSingle Name:="My Tasks", Create:=True, _ 
 Screen:=pjGantt, Table:="Schedule", _ 
 Filter:="In Progress Tasks", Group:="Duration" 
End Sub
© 2018 Microsoft