Printing Problems

Print an Excel Sheet at 150% Scale with VBA

Muhammad TalhaMuhammad Talha Nov 18, 2026 868 views

Question details

Print an Excel worksheet at 150% scale using VBA without permanently changing its print settings.

Print an Excel Sheet at 150% Scale with VBA
Product
Microsoft Excel
Device & OS
not provided
Scenario
A user wants to enlarge a worksheet's printed output using a VBA macro.
Observed behavior
The worksheet should print at 150% scale while its original print scaling is restored afterward.
Before you start

Identify the worksheet name and make sure macros are enabled for the workbook. Save the workbook as an Excel Macro-Enabled Workbook (.xlsm) if you want to keep the VBA code.

Solution 1Recommended

Print at 150% and restore the original settings

Use a macro when the 150% scaling should apply only to the print job.

The macro saves the current scaling and fit-to-page settings, prints the named worksheet, and restores those settings afterward. Print scaling changes the printed output, not the worksheet's actual font sizes.

1
Open the VBA editor

In Excel, open the workbook and select Developer > Visual Basic. If the Developer tab is hidden, enable it in Excel's ribbon settings.

2
Insert the print macro

In the VBA editor, select Insert > Module and paste this code: Sub PrintSheetAt150() Dim ws As Worksheet Dim oldZoom As Variant Dim oldWide As Variant Dim oldTall As Variant Dim errorMessage As String Set ws = ThisWorkbook.Worksheets("Sheet1") oldZoom = ws.PageSetup.Zoom oldWide = ws.PageSetup.FitToPagesWide oldTall = ws.PageSetup.FitToPagesTall On Error GoTo PrintFailed ws.PageSetup.Zoom = 150 ws.PrintOut GoTo RestoreSettings PrintFailed: errorMessage = Err.Description RestoreSettings: On Error Resume Next ws.PageSetup.FitToPagesWide = oldWide ws.PageSetup.FitToPagesTall = oldTall ws.PageSetup.Zoom = oldZoom On Error GoTo 0 If errorMessage <> "" Then MsgBox "Printing failed: " & errorMessage End Sub

3
Choose the worksheet

In the code, replace "Sheet1" with the worksheet tab name you want to print.

4
Run the macro

Return to Excel, select Developer > Macros, choose PrintSheetAt150, and select Run. The macro prints the sheet and then restores its previous scaling settings.

Print at 150% and restore the original settings
Check the printed pages: At 150% scale, the worksheet may require more pages. If another Workbook_BeforePrint event changes scaling, review that code because it can affect the print job.
Free Microsoft Office alternative

Work with Excel-compatible spreadsheets in WPS Office

WPS Office is a free, lightweight alternative with a familiar interface for opening, editing, and printing spreadsheets. It supports common Excel formats for easier migration, though it does not fix Excel's VBA behavior or guarantee compatibility with every macro.

Open and edit Microsoft Excel XLS and XLSX filesReview spreadsheet print settings before printingUse a familiar spreadsheet interfaceMove between common Office file formats with ease
microsoft office alternative - wps office

Frequently Asked Questions

Does 150% print scaling change the font size in my worksheet?

No. Setting PageSetup.Zoom to 150 enlarges the printed output; it does not change the font size stored in the worksheet.

Why might a sheet print on more pages at 150%?

Enlarging the output can make rows or columns exceed a page's printable area. Check File > Print to see how many pages the sheet will use.

Will Workbook_BeforePrint restore the original scaling?

No. The event runs before printing or previewing and leaves the new setting in place. Use a macro that saves the original PageSetup values, calls PrintOut, and then restores them.

What if the worksheet was originally set to fit on one page?

The temporary print macro saves Zoom, FitToPagesWide, and FitToPagesTall and restores them after PrintOut. This preserves the original fit-to-page configuration.

Where should I put the VBA code?

Place the temporary print macro in a standard module through Insert > Module. Place the Workbook_BeforePrint event in the ThisWorkbook module.