Application.ColumnAlignment Method

Project Developer Reference

Sets the alignment of text in the active columns.

Syntax

expression.ColumnAlignment(Align)

expression   A variable that represents an Application object.

Parameters

Name Required/Optional Data Type Description
Align Required Long The 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.

Visual Basic for Applications
  Sub Column_Alignment()

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

SelectTaskColumn Column:="Start"
<strong class="bterm">ColumnAlignment</strong> Align:=pjLeft

End Sub

See Also