How to Remove Print Margins in Excel (3 Quick Tricks)

We will use the following dataset to demonstrate removing margins.

how to remove print margins in Excel


Method 1 – Use the Print Area Tool

Steps:

  • Go to the Page Layout tab and click Print Area.
  • Select Clear Print Area.

Use Print Area tool remove print margins in Excel

  • This will remove the print margins from the Excel sheet.

Read More: How to Change Page Margins to Wide in Excel


Method 2 – Uncheck the Show Page Break Option

Steps:

  • Click on the File tab.

Use show page break to remove print margins in Excel

  • Select Options.

Use show page break to remove print margins in Excel

  • Select the Advanced tab.
  • Scroll down until you find Display options for this worksheet.

Use show page break to remove print margins in Excel

  • Uncheck the box for Show Page Break.

Use show page break to remove print margins in Excel

  • Go back to the worksheet and you will see that the margins have disappeared.


Method 3 – Run VBA Code

Steps:

  • Go to the Developer tab and select Visual Basic. The Visual Basic window will pop up. You can also open the Visual Basic window using the keyboard shortcut Alt+F11.

Use VBA code to remove print margins in Excel

  • Click on the Insert tab and then select Module. It will open a window to write VBA code.

Use VBA code to remove print margins in Excel

  • Copy and paste the following VBA code into the window.
Sub Runme()
ActiveSheet.DisplayPageBreaks = False
End Sub
 Use VBA code to remove print margins in Excel
  • To get back to the Excel sheet, click on the File tab and then Close and Return to Microsoft Excel.

  • Go to the Developer tab and select Macros from the ribbon. A pop-up box will appear. You can open the pop-up box by pressing Alt+F8.

Use VBA code to remove print margins in Excel

  • Click on Run.

Use VBA code to remove print margins in Excel

  • The code will run and the margins from the Excel sheet will be removed.


Download the Practice Workbook


Related Articles


<< Go Back to Adjust Margin | Page Setup | Print in Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Alif Bin Hussain
Alif Bin Hussain

Alif Bin Hussain earned a BSc in Civil Engineering from Bangladesh University of Engineering and Technology. As an engineering graduate, he has a deep passion for research and innovation. He loves to play with Excel. In his role as an Excel & VBA Content Developer at ExcelDemy, he not only solves tricky problems but also shows enthusiasm and expertise in handling tough situations with finesse, emphasizing his dedication to delivering top-notch content. He is interested in C, C++,... Read Full Bio

2 Comments
  1. I am not sure if this is a margins issue but when I print my excel worksheet it prints the A,B,C,D,E,F and the 1,2,3,4,5,6, on the template of the worksheet. Is there a way to keep these from printing? I have never had this issue in Excel before.

    • Hello Donna,

      This isn’t a margins issue. What you’re seeing happens when Row and Column Headings are enabled for printing. Excel is including the A, B, C… and 1, 2, 3… labels on the printed page.

      To fix it:
      1. Go to the Page Layout tab.
      2. In the Sheet Options group >> find Headings.
      3. Uncheck the Print box under Headings.

      Alternatively:
      Press Ctrl + P >> click Page Setup >> go to the Sheet tab >> uncheck Row and column headings >> click OK.

      After this, your worksheet will print without the row and column labels.

      Regards,
      ExcelDemy

Leave a reply

Close the CTA

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo