XL.Sheet.ColFormat
------------------

Returns column's format.

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

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

**MBS**( **"XL.Sheet.ColFormat";** /\* Returns column's format. \*/  
**$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 index of new format or error.

### Description

Returns column's format.  
  
See [XL.Sheet.SetColumn](XLSheetSetColumn.md) function o set format.  
### See also

- [XL.Book.SheetCount](XLBookSheetCount.md)
- [XL.Sheet.GetCellFormat](XLSheetGetCellFormat.md)
- [XL.Sheet.RowFormat](XLSheetRowFormat.md)
- [XL.Sheet.SetCellFormat](XLSheetSetCellFormat.md)
- [XL.Sheet.SetCol](XLSheetSetCol.md)
- [XL.Sheet.SetColumn](XLSheetSetColumn.md)

### Release notes

- **Version 15.0**
    - Added [XL.Sheet.ColFormat](https://www.mbsplugins.eu/XLSheetColFormat.shtml) and [XL.Sheet.RowFormat](https://www.mbsplugins.eu/XLSheetRowFormat.shtml) functions.

### Blog Entries

- [New in MBS FileMaker Plugin 15.0](https://www.mbsplugins.de/archive/2025-01-21/New_in_MBS_FileMaker_Plugin_15/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 14.6pr1](https://www.mbsplugins.de/archive/2024-12-02/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 25th November 2024 , last changed 13th May 2025

  
[XL.Sheet.ClearPrintRepeats](XLSheetClearPrintRepeats.md) - [XL.Sheet.ConditionalFormatSize](XLSheetConditionalFormatSize.md)

[HTML Version](XLSheetColFormat.shtml)