XL.Sheet.GetCellPicture
-----------------------

Queries picture for a cell.

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

MBS( "XL.Sheet.GetCellPicture"; BookRef; SheetIndex; Row; Column ) 

**MBS**( **"XL.Sheet.GetCellPicture";** /\* Queries picture for a cell. \*/  
**$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 \*/   
**$Row**; /\* The row for the cell. First row has index 0. \*/   
**$Column**) /\* The column for the cell. First column has index 0. \*/ 

### 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 |
| Row | The row for the cell. First row has index 0. | $row |
| Column | The column for the cell. First column has index 0. | $column |

### Result

Returns number or error.

### Description

Queries picture for a cell.  
Returns picture index for the book.  
Use [XL.Book.GetPicture](XLBookGetPicture.md) function to retrieve the actual picture data.  
  
There may be multiple cells returning the same picture index here.  
### Examples

Query picture of a cell:

 Set Variable \[ $sheet ; Value: 0 \]   
Set Variable \[ $row ; Value: 2 \]   
Set Variable \[ $col ; Value: 3 \]   
Set Variable \[ $index ; Value: MBS ( "XL.Sheet.GetCellPicture"; $bookRef ; $sheet ; $row ; $col ) \]   
Set Field \[ XL::test ; MBS ( "[XL.Book.GetPicture](XLBookGetPicture.md)"; $bookRef ; $index ) \]  
### See also

- [XL.Book.GetPicture](XLBookGetPicture.md)
- [XL.Book.SheetCount](XLBookSheetCount.md)
- [XL.Sheet.GetCellError](XLSheetGetCellError.md)
- [XL.Sheet.GetCellErrors](XLSheetGetCellErrors.md)
- [XL.Sheet.GetPicture](XLSheetGetPicture.md)
- [XL.Sheet.RemovePicture](XLSheetRemovePicture.md)

### Release notes

- **Version 11.5**
    - Added [XL.Sheet.GetCellPicture](https://www.mbsplugins.eu/XLSheetGetCellPicture.shtml) function.

### Blog Entries

- [New in version 11.5 of MBS FileMaker Plugin](https://www.mbsplugins.de/archive/2021-11-30/New_in_version_115_of_MBS_File/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 11.5pr5](https://www.mbsplugins.de/archive/2021-11-02/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 1st November 2021 , last changed 1st November 2021

  
[XL.Sheet.GetCellFormats](XLSheetGetCellFormats.md) - [XL.Sheet.GetColHidden](XLSheetGetColHidden.md)

[HTML Version](XLSheetGetCellPicture.shtml)