Sub topic 5
Fitting content to pages with scaling
Scaling changes how large Excel prints your worksheet so it fits the pages you want. This chapter assumes you can open the Page Layout tab, set a print area, and choose orientation and paper size. Those settings are covered in earlier chapters, and scaling depends on them.
How scaling works
Excel first works out how much content fits on a page at 100% size. It uses the paper size, margins, orientation, and print area for that. If the content is wider or taller than one page, Excel starts a new page. Scaling shrinks or enlarges the printed content before that division happens, so more or fewer columns and rows fit on each page.
Scaling affects only the printed output. It does not change column widths, row heights, or font sizes in the worksheet.
There are two ways to scale. You can pick one, but not both at once.
| Method | What you set | What Excel does |
|---|---|---|
| Adjust to | A percentage, from 10% to 400% | Applies that exact size and lets the page count follow |
| Fit to | Pages wide and pages tall | Chooses the largest size that fits those page counts |
Setting scaling in the interface
Use the Page Layout tab. In the Scale to Fit group you have three boxes: Width, Height, and Scale.
- Open the Page Layout tab.
- In Scale to Fit, set Width to 1 page.
- Set Height to Automatic.
- Check the result in Print Preview.
This is the most common setup. Every column fits across one page, and the rows flow onto as many pages as they need. A wide table then never splits sideways.
For more control, click the small arrow at the bottom right of the Scale to Fit group. The Page Setup dialog opens on the Page tab. There you can choose Adjust to and type a percentage, or choose Fit to and enter the pages wide and pages tall.
Leaving a Fit to box empty means "as many as needed". The Height box set to Automatic does the same thing in the ribbon.
Choosing a good scale
Fit to is convenient, but it can produce small text. Excel will shrink content as far as needed to meet your page count. A sheet with 25 columns fitted to one page wide might print at 40%, which is hard to read.
Check the scale Excel chose. In the Page Layout tab, the Scale box shows the percentage Excel calculated. Use these rules of thumb:
- Above 85%: comfortable to read.
- Between 70% and 85%: fine for tables, tight for body text.
- Below 70%: consider another approach.
If the scale is too low, try one of these:
- Switch to landscape orientation, which gives more width.
- Narrow the margins.
- Hide or remove columns that readers do not need.
- Allow two pages wide, and repeat the key columns on each page.
- Use a larger paper size, if your printer supports it.
Interaction with page breaks
When Fit to is active, Excel ignores manual page breaks. If you insert a break and nothing changes, check whether Fit to is turned on. To use manual breaks, switch to Adjust to with a percentage. The next chapter covers breaks in detail.
The same settings in VBA
The properties in the Page Setup dialog map to a few VBA settings. The Zoom property must be set to False before the FitToPages properties take effect. Setting Zoom to a number selects Adjust to instead.
Sub FitToOnePageWide()
With ActiveSheet.PageSetup
.Zoom = False
.FitToPagesWide = 1
.FitToPagesTall = False
End With
End Sub
Sub UseFixedScale()
With ActiveSheet.PageSetup
.Zoom = 85
End With
End SubSetting FitToPagesTall to False means Automatic. Note that PageSetup calls can be slow because they talk to the printer driver. If you change many sheets, this can take a while.
Common errors
- Text is tiny. Fit to chose a very low percentage. Reduce the content, or allow more pages.
- The Scale box is greyed out. Width or Height is set to a page count. Set both to Automatic.
- Manual breaks are ignored. Fit to is on. Use Adjust to.
- The preview differs between computers. Printer drivers report different printable areas. Scaling that fits on one machine may spill by a column on another. Leave a small safety margin, such as 95% instead of 100%.
Exercise
A report has 12 columns and prints on two pages wide at 100%. You want every column on one page without splitting, with rows continuing onto more pages as needed. After you apply this, the Scale box shows 58%. Name the Scale to Fit settings you used, and give two changes that could raise the scale.
Show answer
Set Width to 1 page and Height to Automatic. To raise the scale, switch to landscape orientation, narrow the margins, or hide columns that are not needed.
Exercise
In VBA, you set .FitToPagesWide = 1 but the sheet still prints at its old percentage. Which property did you forget, and what value should it have?
Show answer
.Zoom must be set to False. While Zoom holds a number, Excel uses that percentage and ignores the FitToPages properties.