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

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo