

The easiest way is to download our sample workbook with Print Area Macros and run a macro directly from that workbook.
#Print selection on mac how to#
Next End If Set SelectedPrintAreaRange = Nothing End Sub How to use the macros SelectedPrintAreaRangeAddress = SelectedPrintAreaRange.Address( True, True, xlA1, False)įor Each Sheet In ActiveWindow.SelectedSheets If Not SelectedPrintAreaRange Is Nothing Then On Error Resume Next Set SelectedPrintAreaRange = Application.InputBox( "Please select the print area range", "Set Print Area in Multiple Sheets", Type:=8) When multiple sheets are selected, the active sheet is the one which is visible when you run the macro.ĭim SelectedPrintAreaRangeAddress As String Dim Sheet As Worksheet This macro automatically sets the print area(s) for all selected worksheets the same as on the active sheet. Set print area in selected sheets as on the active sheet If you have to print the same area on multiple sheets regularly, the use of VBA can speed up things. Luckily, there is an easy workaround described in How to print the same range in multiple sheets. The problem is that selecting several sheets disables the Print Area button on the ribbon. In case you have a lot of worksheets with exactly the same structure, you will obviously want to output the same rage on paper. How to set print area in Excel for multiple sheets with VBA

To instruct Excel which section of your data should appear in a printed copy, proceed in one of the following ways. Without it, you may end up with messy, hard to read pages where some important rows and columns are cut off, especially if your worksheet is bigger than the paper you are using. If you change your mind at a later point, you can clear the print area or change it.ĭefining a print area gives you more control over what each printed page looks like and, ideally, you should always set a print area before sending a worksheet to the printer. Saving the workbook also saves the print area. You can select multiple print areas in a single worksheet, and each area will print on a separate page. When you press Ctrl + P or click the Print button on a sheet that has a defined print area, only that area will be printed. In case you don't want to print the entire spreadsheet, set a print area that includes only your selection. This feature is known as Print Area.Ī print area is a range of cells to be included in the final printout. But what if you don't really need all the content of a huge worksheet on paper? Luckily, Excel provides the ability define the parts for printing.

When you hit the Print button in Excel, the entire spreadsheet is printed by default, which often takes multiple pages. In this tutorial, you will learn how to select print area in Excel manually and how to set print ranges for multiple sheets by using macros.
