Table of contents
Collapse the table of content
Expand the table of content

Application.SelectCell Method (Project)

office 365 dev account|Last Updated: 6/12/2017
1 Contributor

Selects a cell.


expression. SelectCell( ** Row, ** Column, ** RowRelative** )

expression A variable that represents an Application object.


NameRequired/OptionalData TypeDescription
RowOptionalLongThe row number ( RowRelative is False ) or the relative row position ( RowRelative is True ) of the cell to select.
ColumnOptionalIntegerThe column number of the cell to select.
RowRelativeOptionalBooleanTrue if the row number is relative to the active cell. The default value is True.

Return Value



Using the SelectCell method without specifying any arguments retains the current cell as the active cell.


The following example selects the third field in the fourth row of the Gantt Chart.

Sub Select_Cell() 

 ViewApply Name:="&;Gantt Chart" 
 SelectCell Row:=4, Column:=3, RowRelative:=False 
End Sub
© 2018 Microsoft