# CopyLikeExcel

Use the CopyLikeExcel method to copy the contents of the selected cells to the clipboard. Learn its syntax and parameters in documentation.

## Content

Copies the contents of the selected cells to the Clipboard.

## Syntax

[JavaScript]

```javascript
FpSpread1.CopyLikeExcel();
```

## Parameters

None

## Return Type

None

## Remarks

This method copies the data. 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 language=javascript>
   function copyCell() {
       FpSpread1.CopyLikeExcel();
   }
</SCRIPT>
```

This example maps keys to the cut, copy, and paste functions:

```javascript
<script type="text/javascript">
        window.onload = function () {
           var spread = document.getElementById("FpSpread1");
           spread.AddKeyMap(67, true, false, false, "CopyLikeExcel()"); // Ctrl + C
           spread.AddKeyMap(86, true, false, false, "PasteLikeExcel()"); // Ctrl + V
           spread.AddKeyMap(88, true, false, false, "CutLikeExcel()"); // Ctrl + X
        }
        </script>
```

## See Also

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