How to Fit to Page in Excel – 3 Methods

 

The sample dataset contains multiple rows and columns.

Sample Data


Method 1 – Utilizing the Page Layout Tab to Fit to Page in Excel

Step 1:

  • Select the Page Layout tab.
  • Click the sign marked 2.

Sample Data

Step 2:

  • In Page Setup, click Fit to, choosing 1 in page wide by and 1 in tall.
  • Click OK.

Sample Data

Step 3:

  • This is the output.

Sample Data

Read More: How to Change the Printing Scale So All Columns Will Print on a Single Page


Method 2 – Using the Print Preview Screen to Fit to Page in Excel

IStep 1:

  • Go to the File tab.

Handy Approaches to Fit to Page in Excel

Step 2:

  • Select Print.
  • Choose No Scaling.
  • Click Fit Sheet on One Page.

Handy Approaches to Fit to Page in Excel

Step 3:

  • This is the output.

Handy Approaches to Fit to Page in Excel

Read More: Excel Fit to Page Scale/Preview Looks Small


Method 3 – Applying a VBA Code to Fit to Page in Excel

Step 1:

  • Go to the Developer tab.
  • Select Visual Basic.

Handy Approaches to Fit to Page in Excel

Step 2:

  • In the Visual Basic window, select insert.
  • Choose Module.

Handy Approaches to Fit to Page in Excel

Step 3:

  • Enter the following VBA code into the Module. To run the program, click “Run” or press F5.
Sub Fit_to_Page()
Dim Mysheet As Worksheet
Set Mysheet = ThisWorkbook.ActiveSheet
'PageSetup allows to configure different printing settings in their configuration
With Mysheet.PageSetup
'Data set will be printed in landscape orientation without zoom
.Orientation = xlLandscape
.Zoom = False
'One page for height
.FitToPagesTall = 1
'One page for wide
.FitToPagesWide = 1
'Print area will be specified
.PrintArea = "A1:E26"
End With
'Any sheet for printing
Set Mysheet = Nothing
End Sub

Handy Approaches to Fit to Page in Excel

VBA Code Breakdown

  • calls the Sub Procedure Fit_to_Page_Folder.
  • refers to the current Worksheet as Active Worksheet.
  • chooses Page_Setup which allows configuring different printing settings.
  • specifies landscape as orientation, using Orientation = xlLandscape.
  • specifies the pages height and width, using FitToPagesTall = 1 and FitToPagesWide = 1.
  • specifies the print area, using PrintArea = “A1:E26”.

Step 4:

  • This is the output.

Handy Approaches to Fit to Page in Excel

Read More: How to Adjust Page Size for Printing in Excel


Download Practice Workbook

Download the following Excel workbook.


Related Articles

Get FREE Advanced Excel Exercises with Solutions!
Bishawajit Chakraborty
Bishawajit Chakraborty

Bishawajit Chakraborty, a Rajshahi University of Engineering & Technology graduate with a B.Sc. in Mechanical Engineering, has been associated with ExcelDemy since 2022. Presently, he is a content developer, specializing in Excel Power Query, Data Analysis and VBA. It is worth mentioning that he has authored more than 90 articles on VBA content development. His profound interest lies in the fields of data analytics and data science. He possesses expertise in VBA, Power BI, machine learning, and Python... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo