XL.Sheet.SetVCenter
-------------------

ets a flag that the sheet is centered vertically when printed.

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

MBS( "XL.Sheet.SetVCenter"; BookRef; SheetIndex; Value ) 

**MBS**( **"XL.Sheet.SetVCenter";** /\* ets a flag that the sheet is centered vertically when printed. \*/  
**$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 \*/   
**$Value**) /\* The new setting. Pass 1 for yes, 0 for no.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 |
| Value | The new setting. Pass 1 for yes, 0 for no. | 0 |

### Result

Returns OK or error message.

### Description

ets a flag that the sheet is centered vertically when printed.  
### See also

- [XL.Book.SheetCount](XLBookSheetCount.md)
- [XL.Sheet.GetFooter](XLSheetGetFooter.md)
- [XL.Sheet.GetHeader](XLSheetGetHeader.md)
- [XL.Sheet.GetVCenter](XLSheetGetVCenter.md)
- [XL.Sheet.SetBorder](XLSheetSetBorder.md)
- [XL.Sheet.SetFooter](XLSheetSetFooter.md)
- [XL.Sheet.SetHCenter](XLSheetSetHCenter.md)
- [XL.Sheet.SetHeader](XLSheetSetHeader.md)
- [XL.Sheet.SetMerge](XLSheetSetMerge.md)
- [XL.Sheet.SetPaper](XLSheetSetPaper.md)

This function checks for a license.

Created 18th August 2014 , last changed 18th August 2014

  
[XL.Sheet.SetTopLeftView](XLSheetSetTopLeftView.md) - [XL.Sheet.SetVerPageBreak](XLSheetSetVerPageBreak.md)

[HTML Version](XLSheetSetVCenter.shtml)