XL.Sheet.CopyCell
-----------------

Copies cell with format from (rowSrc, colSrc) to (rowDst, colDst).

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [XL](component_XL.md) | [3.5](newinversion35.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "XL.Sheet.CopyCell"; BookRef; SheetIndex; rowSource; ColumnSource; rowDest; ColumnDest ) 

**MBS**( **"XL.Sheet.CopyCell";** /\* Copies cell with format from (rowSrc, colSrc) to (rowDst, colDst). \*/  
**$BookRef**; /\* The reference number for the workbook.e.g. $ref \*/   
**$SheetIndex**; /\* The index of the sheet. This number ranges from 0 to [XL.Book.SheetCount](XLBookSheetCount.md)-1.e.g. 0 \*/   
**$rowSource**; /\* The source row for the cell. First row has index 0.e.g. 1 \*/   
**$ColumnSource**; /\* The source column for the cell. First column has index 0.e.g. 1 \*/   
**$rowDest**; /\* The destination row for the cell. e.g. 2 \*/   
**$ColumnDest**) /\* The destination column for the cell. e.g. 2 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| BookRef | The reference number for the workbook. | $ref |
| SheetIndex | The index of the sheet. This number ranges from 0 to [XL.Book.SheetCount](XLBookSheetCount.md)-1. | 0 |
| rowSource | The source row for the cell. First row has index 0. | 1 |
| ColumnSource | The source column for the cell. First column has index 0. | 1 |
| rowDest | The destination row for the cell. | 2 |
| ColumnDest | The destination column for the cell. | 2 |

### Result

Returns OK or error.

### Description

Copies cell with format from (rowSrc, colSrc) to (rowDst, colDst).   
### See also

- [XL.Book.SheetCount](XLBookSheetCount.md)
- [XL.CopyCellValue](XLCopyCellValue.md)

### Blog Entries

- [Tips and tricks with MBS](https://www.mbsplugins.de/archive/2023-08-10/Tips_and_tricks_with_MBS/monkeybreadsoftware_blog_filemaker)
- [LibXL for FileMaker with extras](https://www.mbsplugins.de/archive/2021-03-02/LibXL_for_FileMaker_with_extra/monkeybreadsoftware_blog_filemaker)

### FileMaker Magazin

- [Ausgabe 1/2025, Seite 27](https://filemaker-magazin.de/neuigkeit/4282-Appetithappen-FMM_202501)

This function checks for a license.

Created 18th August 2014 , last changed 18th August 2014

  
[XL.Sheet.ConditionalFormatting](XLSheetConditionalFormatting.md) - [XL.Sheet.DataValidation](XLSheetDataValidation.md)

[HTML Version](XLSheetCopyCell.shtml)