Skip to content

Latest commit

 

History

History
56 lines (34 loc) · 1.13 KB

Project.Application.ColumnAlignment.md

File metadata and controls

56 lines (34 loc) · 1.13 KB
title keywords f1_keywords ms.service api_name ms.assetid ms.date ms.localizationpriority
Application.ColumnAlignment method (Project)
vbapj.chm2325
vbapj.chm2325
project-server
Project.Application.ColumnAlignment
9c51eb2d-c28b-cb00-57e5-1643093e4acb
06/08/2017
medium

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

[!includeSupport and feedback]