XL.Sheet.GetFirstFilledCol
--------------------------

Returns the first column in the sheet that contains a filled cell.

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

MBS( "XL.Sheet.GetFirstFilledCol"; BookRef; SheetIndex ) 

**MBS**( **"XL.Sheet.GetFirstFilledCol";** /\* Returns the first column in the sheet that contains a filled 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 \*/ 

### 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 |

### Result

Returns number or error.

### Description

Returns the first column in the sheet that contains a filled cell.  
### See also

- [XL.Book.SheetCount](XLBookSheetCount.md)
- [XL.Sheet.GetFirstCol](XLSheetGetFirstCol.md)
- [XL.Sheet.GetFirstFilledRow](XLSheetGetFirstFilledRow.md)
- [XL.Sheet.GetLastFilledCol](XLSheetGetLastFilledCol.md)
- [XL.Sheet.GetLastFilledRow](XLSheetGetLastFilledRow.md)

### Release notes

- **Version 10.3**
    - Added [XL.Sheet.CellWriteTextAsNumber](https://www.mbsplugins.eu/XLSheetCellWriteTextAsNumber.shtml), [XL.Sheet.GetFirstFilledCol](https://www.mbsplugins.eu/XLSheetGetFirstFilledCol.shtml), [XL.Sheet.GetFirstFilledRow](https://www.mbsplugins.eu/XLSheetGetFirstFilledRow.shtml), [XL.Sheet.GetLastFilledCol](https://www.mbsplugins.eu/XLSheetGetLastFilledCol.shtml) and [XL.Sheet.GetLastFilledRow](https://www.mbsplugins.eu/XLSheetGetLastFilledRow.shtml) functions.

### Blog Entries

- [MBS FileMaker Plugin, version 10.3pr1](https://www.mbsplugins.de/archive/2020-06-01/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 26th May 2020 , last changed 26th May 2020

  
[XL.Sheet.GetFirstCol](XLSheetGetFirstCol.md) - [XL.Sheet.GetFirstFilledRow](XLSheetGetFirstFilledRow.md)

[HTML Version](XLSheetGetFirstFilledCol.shtml)