---
title: "edit.pasteSpecial: Paste Special — Sheet kit command — Kition"
description: "Pastes only part of the copied cells (values, formulas, formats, comments, validation…), optionally combining with an arithmetic operation, skipping blanks or transposing."
canonical: "https://developer.kition.ai/docs/kits/sheet/commands/edit.pasteSpecial"
---

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

# edit.pasteSpecial

**Paste Special.** Pastes only part of the copied cells (values, formulas, formats, comments, validation…), optionally combining with an arithmetic operation, skipping blanks or transposing.

- 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: yes

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `at` | `string` | no | read by the command beside its listed parameters |
| `link` | `boolean` | no |  |
| `operation` | `"none" \| "add" \| "subtract" \| "multiply" \| "divide"` | no |  |
| `sheet` | `integer \| string` | no | read by the command beside its listed parameters |
| `skipBlanks` | `boolean` | no |  |
| `transpose` | `boolean` | no |  |
| `what` | `"all" \| "formulas" \| "values" \| "formats" \| "comments" \| "validation" \| "allExceptBorders" \| "columnWidths" \| "formulasAndNumberFormats" \| "valuesAndNumberFormats"` | no |  |

## Call through sheet_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: `at`, `link`, `operation`, `sheet`, `skipBlanks`, `transpose`, `what`. sheet_run answers the step’s result in `completed[i].result`.

## Result

The kit gives no result schema for this command.

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "at": {
      "description": "read by the command beside its listed parameters",
      "type": "string"
    },
    "link": {
      "type": "boolean"
    },
    "operation": {
      "enum": [
        "none",
        "add",
        "subtract",
        "multiply",
        "divide"
      ],
      "type": "string"
    },
    "sheet": {
      "description": "read by the command beside its listed parameters",
      "oneOf": [
        {
          "type": "integer"
        },
        {
          "type": "string"
        }
      ],
      "x-khp-name": "name",
      "x-khp-types": [
        "Sheet"
      ]
    },
    "skipBlanks": {
      "type": "boolean"
    },
    "transpose": {
      "type": "boolean"
    },
    "what": {
      "enum": [
        "all",
        "formulas",
        "values",
        "formats",
        "comments",
        "validation",
        "allExceptBorders",
        "columnWidths",
        "formulasAndNumberFormats",
        "valuesAndNumberFormats"
      ],
      "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).
