# SetActiveCell

Use the SetActiveCell method to set the active cell to the cell at the specified row and column. Learn its syntax and parameters in documentation.

## Content

Sets the active cell to the cell at the specified row and column.

## Syntax

[JavaScript]

```javascript
FpSpread1.SetActiveCell(row,column);
```

## Parameters

***row***
Integer, row index of the specified cell
***column***
Integer, column index of the specified cell

## Return Type

None

## Remarks

This method changes the active cell to the one specified. Both row and column indexes must be valid. This method does not cause a postback to occur.

## Example

This is a sample that contains the method. On the client side, the script that contains the method would look like this:

```javascript
<script type="text/javascript">
  function moveSelection() {
    FpSpread1.Copy(); // copies selection to Clipboard
    FpSpread1.SetActiveCell(0,0); // goes to top of displayed sheet
    FpSpread1.Paste(); // pastes selection
  }
</script>
```

## See Also

[SetValue](/spreadnet/docs/latest/online-asp/overview/spweb-clientscriptref/clientscript-members/clientscript-allmeths/CSSR-SetValue)
[Scripting Members](/spreadnet/docs/latest/online-asp/overview/spweb-clientscriptref/clientscript-members)