Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 10.3   10.4   10.5   11.0   11.1   11.2   11.3   11.4   11.5   11.6    Statistic    FMM    Blog  


Queries picture for a cell.

Component Version macOS Windows Linux Server iOS SDK
XL 11.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "XL.Sheet.GetCellPicture"; bookRef; sheetIndex; Row; Column )   More


Parameter Description Example
bookRef The reference to the workbook. Please use XL.LoadBook to load a file. $ref
sheetIndex The index of the sheet. This number ranges from 0 to XL.Book.SheetCount-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


Returns number or error.


Queries picture for a cell.
Returns picture index for the book.
Use XL.Book.GetPicture function to retrieve the actual picture data.

There may be multiple cells returning the same picture index here.


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"; $bookRef; $index) ]

See also

Release notes

Blog Entries

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

XL.Sheet.GetCellFormats - XL.Sheet.GetColHidden

Feedback: Report problem or ask question.

MBS Xojo blog

Start Chat