Application.SelectResourceColumn method (Project)

Selects a column containing resource information.

Syntax

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

expression A variable that represents an Application object.

Parameters

Name Required/Optional Data type Description
Column Optional String The field name of the column to select. The default is the column containing the active cell.
Additional Optional Integer The number of additional columns to select to the right of Column. If Extend is True, Additional is ignored. The default value is 0.
Extend Optional Boolean True if all columns between the current selection and Column are selected. The default value is False.
Add Optional Boolean True if the current column is included in the selection. The default value is False.

Return value

Boolean

Remarks

The SelectResourceColumn method is only available when the Resource Sheet or Resource Usage view is the active view.

Example

The following example selects the Indicators column and the next two columns.

Sub Select_ResourceColumn() 
 
 'Activate Resource Sheet 
 ViewApply Name:="&Resource Sheet" 
 SelectResourceColumn Column:="Indicators", Additional:=2 
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.