Free Excel Macro : Print Narrow Margin

Download now!

Download free Excel Macro : Print Narrow Margin

Macros are one of the most powerful features in Excel. They are small programs that can automate tasks and save you a lot of time.

If you are not familiar with macros, they can seem a bit daunting. But once you learn how to use them, you will wonder how you ever managed without them!

In this article, we will show you how to use the Macro "Print Narrow Margin" in Excel. We will also provide some examples of how macros can be used to automate tasks.

How to use Macros in Excel?

Macros are written in a programming language called Visual Basic for Applications (VBA). VBA is a simple language that is easy to learn.

You do not need to be a programmer to use macros. However, if you are familiar with programming, you can use VBA to create more complex macros.

There are two ways to use macros in Excel:
    1. Use a macro that is already written.
     2. Write your own macro.

For both methods check out those articles to know how to use macros in Excel:

To create a macro in Excel, open the Visual Basic Editor (VBE) by pressing Alt+F11 on your keyboard.

In the VBE, select Insert > Module. This will insert a new blank module into the VBE.

In the new module, paste the code below.

For example, the following code will create a macro that will Print Narrow Margin:

Sub printNarrowMargin()
With ActiveSheet.PageSetup
.LeftMargin = Application
.InchesToPoints (0.25)
.RightMargin = Application.InchesToPoints(0.25)
.TopMargin = Application.InchesToPoints(0.75)
.BottomMargin = Application.InchesToPoints(0.75)
.HeaderMargin = Application.InchesToPoints(0.3)
.FooterMargin = Application.InchesToPoints(0.3)
End With
ActiveWindow.SelectedSheets.PrintOut _
Copies:=1, _
Collate:=True, _
End Sub

To run the macro, press the Run button in the toolbar (or press F5 on your keyboard).

About Print Narrow Margin Excel Macro

If you have to print an Excel spreadsheet but don't want to waste paper, you can use a print narrow margin macro. This will allow you to fit more data onto each page. To use a print narrow margin macro, first select the cells that you want to print. Then go to File > Print. In the settings, select the print narrow margin macro. This will reduce the margins so that more data can fit onto each page. Keep in mind that you might have to adjust your data to fit onto the page after you've selected the print narrow margin macro. But this can be a great way to save paper when you need to print an Excel spreadsheet.