XL.Sheet.GetColWidth
--------------------

Returns column width in points.

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

MBS( "XL.Sheet.GetColWidth"; BookRef; SheetIndex; Col ) 

**MBS**( **"XL.Sheet.GetColWidth";** /\* Returns column width in points. \*/  
**$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 \*/   
**$Col**) /\* The column index to query.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 |
| Col | The column index to query. | 0 |

### Result

Returns column width.

### Description

Returns column width in points.  
If you need pixel width, please use [XL.Sheet.GetColWidthPixel](XLSheetGetColWidthPixel.md) instead.  
### See also

- [XL.Book.SheetCount](XLBookSheetCount.md)
- [XL.Sheet.GetColHidden](XLSheetGetColHidden.md)
- [XL.Sheet.GetColWidthPixel](XLSheetGetColWidthPixel.md)
- [XL.Sheet.SetColHidden](XLSheetSetColHidden.md)

### Release notes

- **Version 10.2**
    - Added [XL.Sheet.GetColWidthPixel](https://www.mbsplugins.eu/XLSheetGetColWidthPixel.shtml) and [XL.Sheet.GetRowHeightPixel](https://www.mbsplugins.eu/XLSheetGetRowHeightPixel.shtml) functions.

This function checks for a license.

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

  
[XL.Sheet.GetColHidden](XLSheetGetColHidden.md) - [XL.Sheet.GetColWidthPixel](XLSheetGetColWidthPixel.md)

[HTML Version](XLSheetGetColWidth.shtml)