Skip to content

Latest commit

 

History

History
57 lines (34 loc) · 1.29 KB

Project.Application.GetCellInfo.md

File metadata and controls

57 lines (34 loc) · 1.29 KB
title keywords f1_keywords ms.service api_name ms.assetid ms.date ms.localizationpriority
Application.GetCellInfo method (Project)
vbapj.chm131092
vbapj.chm131092
project-server
Project.Application.GetCellInfo
ddd531b1-e66d-5c70-c4ed-2e2b456e3a3b
06/08/2017
medium

Application.GetCellInfo method (Project)

Gets the cell object at the specified coordinates.

Syntax

expression. GetCellInfo( _x_, _y_ )

expression A variable that represents an Application object.

Parameters

Name Required/Optional Data type Description
x Required Long Horizontal coordinate on the grid.
y Required Long Vertical coordinate on the grid.

Return value

Cell

Remarks

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.

Example

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]