XL.Sheet.RemovePictureByIndex
-----------------------------

Removes a picture by index.

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

MBS( "XL.Sheet.RemovePictureByIndex"; BookRef; SheetIndex; Index ) 

**MBS**( **"XL.Sheet.RemovePictureByIndex";** /\* Removes a picture by index. \*/  
**$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 \*/   
**$Index**) /\* The index of the picture.  
First one starts with zero.e.g. 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 |
| Index | The index of the picture.   First one starts with zero. | 0 |

### Result

Returns OK or error.

### Description

Removes a picture by index.  
### Examples

Remove a picture by index:

 Set Variable \[ $r ; Value: MBS ( "XL.Sheet.RemovePictureByIndex"; $book ; 0; $imageIndex ) \]  
### See also

- [XL.Book.SheetCount](XLBookSheetCount.md)
- [XL.Sheet.RemovePicture](XLSheetRemovePicture.md)

### Release notes

- **Version 10.2**
    - Added [XL.Sheet.RemovePicture](https://www.mbsplugins.eu/XLSheetRemovePicture.shtml) and [XL.Sheet.RemovePictureByIndex](https://www.mbsplugins.eu/XLSheetRemovePictureByIndex.shtml) functions.

### Blog Entries

- [News about the MBS FileMaker Plugin 10.2](https://www.mbsplugins.de/archive/2020-05-19/News_about_the_MBS_FileMaker_P/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 10.2pr4](https://www.mbsplugins.de/archive/2020-04-20/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 18th April 2020 , last changed 19th April 2020

  
[XL.Sheet.RemovePicture](XLSheetRemovePicture.md) - [XL.Sheet.RemoveRow](XLSheetRemoveRow.md)

[HTML Version](XLSheetRemovePictureByIndex.shtml)