Application.ColumnAlignment method (Project)
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.
Sub Column_Alignment()
'Activate Gantt Chart view
ViewApply Name:="Gantt Chart"
SelectTaskColumn Column:="Start"
ColumnAlignment Align:=pjLeft
End Sub
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.