---
title: "select.move: Move Selection — Sheet kit command — Kition"
description: "Moves the active cell by rows and columns, optionally extending the selection or jumping to the data edge like Ctrl+arrow, or to the row's first column, the sheet's first cell or the used range's last cell like Home, Ctrl+Home and Ctrl+End; answers the new selection."
canonical: "https://developer.kition.ai/docs/kits/sheet/commands/select.move"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/sheet/commands/select.move](https://developer.kition.ai/docs/kits/sheet/commands/select.move)

# select.move

**Move Selection.** Moves the active cell by rows and columns, optionally extending the selection or jumping to the data edge like Ctrl+arrow, or to the row's first column, the sheet's first cell or the used range's last cell like Home, Ctrl+Home and Ctrl+End; answers the new selection.

- Kit: Sheet 0.1.0 (.xlsx (and opens .xlsm, .xls, .xltx, .csv, .ods, .xlsb)); reference: [Sheet kit commands](https://developer.kition.ai/docs/kits/sheet.md)
- Changes the document: no

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `dc` | `integer` | no | columns to move, negative moves left |
| `dr` | `integer` | no | rows to move, negative moves up |
| `extend` | `boolean` | no |  |
| `jump` | `boolean` | no | Ctrl+arrow |
| `page` | `boolean` | no |  |
| `to` | `"rowStart" \| "sheetStart" \| "lastCell"` | no | instead of dr and dc: rowStart (Home), sheetStart (Ctrl+Home; below and right of frozen panes) or lastCell (Ctrl+End) |

## Call through sheet_run

```text
sheet_run {
  "path": "<file>.xlsx",
  "steps": [{ "command": "select.move" }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `dc`, `dr`, `extend`, `jump`, `page`, `to`. sheet_run answers the step’s result in `completed[i].result`.

## Result

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `active` | `string` | no |  |
| `selection` | `string` | no |  |

```json
{
  "additionalProperties": true,
  "properties": {
    "active": {
      "type": "string"
    },
    "selection": {
      "type": "string"
    }
  },
  "type": "object"
}
```

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "dc": {
      "description": "columns to move, negative moves left",
      "type": "integer"
    },
    "dr": {
      "description": "rows to move, negative moves up",
      "type": "integer"
    },
    "extend": {
      "type": "boolean"
    },
    "jump": {
      "description": "Ctrl+arrow",
      "type": "boolean"
    },
    "page": {
      "type": "boolean"
    },
    "to": {
      "description": "instead of dr and dc: rowStart (Home), sheetStart (Ctrl+Home; below and right of frozen panes) or lastCell (Ctrl+End)",
      "enum": [
        "rowStart",
        "sheetStart",
        "lastCell"
      ],
      "type": "string"
    }
  },
  "type": "object"
}
```

Generated from the command list of @kition/sheet-darwin-arm64@0.1.0 and the kit itself (sheet_commands through @kition/cli@0.1.1, built from KitionAI/kition-sheet@82f13b2).
