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

Application.ColumnAlignment Method (Project)

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

Sets the alignment of text in the active columns.

Syntax

expression. ColumnAlignment( ** Align** )

expression A variable that represents an Application object.

Parameters

NameRequired/OptionalData TypeDescription
AlignRequiredLongThe alignment of text in the active columns. Can be one of the following PjAlignment constants: pjLeft, pjCenter, or pjRight.

Return Value

Boolean

Example

The following example aligns the Start column to the left side.

Sub Column_Alignment() 

 'Activate Gantt Chart view 
 ViewApply Name:="Gantt Chart" 

 SelectTaskColumn Column:="Start" 
 ColumnAlignment Align:=pjLeft 
End Sub
© 2018 Microsoft