title | keywords | f1_keywords | ms.service | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|---|
Application.GetCellInfo method (Project) |
vbapj.chm131092 |
|
project-server |
|
ddd531b1-e66d-5c70-c4ed-2e2b456e3a3b |
06/08/2017 |
medium |
Gets the cell object at the specified coordinates.
expression. GetCellInfo
( _x_
, _y_
)
expression A variable that represents an Application object.
Name | Required/Optional | Data type | Description |
---|---|---|---|
x | Required | Long | Horizontal coordinate on the grid. |
y | Required | Long | Vertical coordinate on the grid. |
Cell
The coordinates x=0, y=0 specify the top-left corner of the grid. The coordinate value increases to the right for x coordinates and down for y coordinates. The value of x must be less than or equal to the number of columns in the view. The value of y must be less than or equal to the number of rows in the view.
The following example sets the cell at x=1, y=0 to red.
Dim c As Cell
Set c = Application.GetCellInfo(1, 0)
c.CellColor = pjRed
[!includeSupport and feedback]