Application.SelectColumn method (Project)

Selects one or more columns.

Syntax

expression. SelectColumn( _Column_, _Additional_, _Extend_, _Add_ )

expression A variable that represents an Application object.

Parameters

Name Required/Optional Data type Description
Column Optional Integer The number of the column to select. (Columns are numbered from left to right, starting with 2.) The default is the active column.
Additional Optional Integer The number of columns to select in addition to the active column.
Extend Optional Boolean True if the active selection is extended into the new selection. The default value is False.
Add Optional Boolean True if the new selection is added to the active selection. The default value is False.

Return value

Boolean

Example

The following example selects the fourth column of the Gantt Chart.

Sub Select_Column() 
 ViewApply Name:="&Gantt Chart" 
 SelectColumn Column:=4, Extend:=False 
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.