XL.Sheet.SetPrintZoom
---------------------

Sets the scaling factor for printing as a percentage.

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

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

**MBS**( **"XL.Sheet.SetPrintZoom";** /\* Sets the scaling factor for printing as a percentage. \*/  
**$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 zoom level.e.g. 150 \*/ 

### 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 zoom level. | 150 |

### Result

Returns OK or error message.

### Description

Sets the scaling factor for printing as a percentage.  
### See also

- [XL.Book.SheetCount](XLBookSheetCount.md)
- [XL.Sheet.GetPrintArea](XLSheetGetPrintArea.md)
- [XL.Sheet.GetPrintFit](XLSheetGetPrintFit.md)
- [XL.Sheet.GetPrintRow](XLSheetGetPrintRow.md)
- [XL.Sheet.GetPrintZoom](XLSheetGetPrintZoom.md)
- [XL.Sheet.SetPrintArea](XLSheetSetPrintArea.md)
- [XL.Sheet.SetPrintFit](XLSheetSetPrintFit.md)
- [XL.Sheet.SetPrintRow](XLSheetSetPrintRow.md)

This function checks for a license.

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

  
[XL.Sheet.SetPrintRow](XLSheetSetPrintRow.md) - [XL.Sheet.SetProtect](XLSheetSetProtect.md)

[HTML Version](XLSheetSetPrintZoom.shtml)