GoToCell Method

Moves the active cell to the referenced cell.


Syntax

object.GoToCell Row, Col

The syntax of the GoToCell method has these parts:

PartDescription
objectA DGrid control.
Row   The row number to move to.
Col   The column number to move to.

Return Value Long

Returns -1 if an error occurs, otherwise the row number of the new active cell.

Data Type

Row  Long
Col  Long