Skip to content

Latest commit

 

History

History
59 lines (38 loc) · 1.81 KB

Project.Application.SelectResourceField.md

File metadata and controls

59 lines (38 loc) · 1.81 KB
title keywords f1_keywords ms.service api_name ms.assetid ms.date ms.localizationpriority
Application.SelectResourceField method (Project)
vbapj.chm2064
vbapj.chm2064
project-server
Project.Application.SelectResourceField
6942d5a5-4072-4a95-f2b7-33bf965e302f
06/08/2017
medium

Application.SelectResourceField method (Project)

Selects a resource field.

Syntax

expression. SelectResourceField( _Row_, _Column_, _RowRelative_, _Width_, _Height_, _Extend_, _Add_ )

expression A variable that represents an Application object.

Parameters

Name Required/Optional Data type Description
Row Required Long The number of the row containing the field to select.
Column Required String The name of the column containing the field to select.
RowRelative Optional Boolean True if the location of the new selection is relative to the active selection. The default value is True.
Width Optional Long The number of columns to select in addition to the active field.
Height Optional Long The number of rows to select in addition to the active field.
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 Name column and the next two columns of the third and fourth rows.

Sub Select_ResourceField() 
 
 ViewApply Name:="&Resource Sheet" 
 SelectResourceField Row:=3, Column:="Name", RowRelative:=False, Width:=2, Height:=1 
End Sub

[!includeSupport and feedback]