Run the report called Tax Forms Worksheets. Answer the question ' Which worksheet do you want to create? You want the State wage listing report. Make sure the date is set for to. You will then be able to copy and paste the necessary information into the Mass PFM Template excel sheet and upload it to Mass Connect. This week, I was experimenting with sending email from Excel via Outlook. The goal was to send an email to each name in a list, and attach a couple of PDF files. Here's how I managed to send email with PDF attachment from Excel. The Sample File. So, before creating my complex email code, I set up a little test file, with a short list of fake.
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.
When you hit the Print button in Excel, the entire spreadsheet is printed by default, which often takes multiple pages. 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. This feature is known as Print Area.
Excel print area
A print area is a range of cells to be included in the final printout. In case you don't want to print the entire spreadsheet, set a print area that includes only your selection.
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.
You can select multiple print areas in a single worksheet, and each area will print on a separate page. Saving the workbook also saves the print area. If you change your mind at a later point, you can clear the print area or change it.
Defining 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. 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.
How to set the print area in Excel
To instruct Excel which section of your data should appear in a printed copy, proceed in one of the following ways.
Fastest way to set print area in Excel
The quickest way to set a constant print range is this:
- Select the part of the worksheet that you want to print.
- On the Page Layout tab, in the Page Setup group, click Print Area > Set Print Area.
A faint gray line will appear denoting the print area.
More informative way to define print area in Excel
Want to visually see all your settings? Here's a more transparent approach to defining a print area:
- On the Page Layout tab, in the Page Setup group, click the dialog launcher . This will open the Page Setup dialog box.
- On the Sheet tab, put the cursor in the Print area field, and select one or more ranges in your worksheet. To select multiple ranges, please remember to hold the Ctrl key.
- Click OK.
- When you save the workbook, the print area is also saved. Whenever you send the worksheet to the printer, only that area will be printed.
- To make sure the defined areas are the ones you really want, press Ctrl + P and go through each page preview.
- To quickly print a certain part of your data without setting a print area, select the desired range(s), press Ctrl + P and choose Print Selection in the drop-down list right under Settings. For more information, please see How to print selection, sheet or entire workbook.
How to set multiple print areas in Excel
To print a few different parts of a worksheet, you can select multiple print areas in this way:
- Select the first range, hold down the Ctrl key and select other ranges.
- On the Page Layout tab, in the Page Setup group, click Print Area > Set Print Area.
Done! Multiple print areas are created, each one representing its own page.
How to force Excel to ignore print area
When you want a hard copy of a whole sheet or entire workbook but do not want to bother clearing all the print areas, just tell Excel to ignore them:
- Click File > Print or press Ctrl + P.
- Under Settings, click the arrow next to Print Active Sheets and select Ignore Print Area.
How to print multiple areas on one page
Excel 11 For Mac Send Worksheet As Email Addresses
The ability to print multiple areas per sheet of paper is controlled by a printer model, not by Excel. To check if this option is available to you, press Ctrl + P, click the Printer Properties link, and then switch through the available tabs of the Printer Properties dialog box searching for the Pages per Sheet option.
If your printer has such an option, lucky you are :) If there is no such option, then the only way I can think of is copying the print ranges to a new sheet. With the help of the Paste Special feature, you can link the copied ranges to the original data in this way:
- Select the first print area and press Ctrl + C to copy it.
- On a new sheet, right click any blank cell and choose Paste Special > Linked Picture.
- Repeat steps 1 and 2 for other print areas.
- In the new sheet, press Ctrl + P to print all the copied print areas on one page.
How to set print area in Excel for multiple sheets with VBA
In case you have a lot of worksheets with exactly the same structure, you will obviously want to output the same rage on paper. The problem is that selecting several sheets disables the Print Area button on the ribbon. Luckily, there is an easy workaround described in How to print the same range in multiple sheets.
If you have to print the same area on multiple sheets regularly, the use of VBA can speed up things.
Set print area in selected sheets as on the active sheet
This macro automatically sets the print area(s) for all selected worksheets the same as on the active sheet. When multiple sheets are selected, the active sheet is the one which is visible when you run the macro.
Set print range in all worksheets as on the active sheet
No matter how many sheets you have, this code defines the print range in a whole workbook in one go. Simply, set the desired print area(s) on the active sheet and run the macro:
Set the specified print area in multiple sheets
When working with different workbooks, you may find it convenient if the macro prompts you to select a range.
Here's how it works: you select all the target worksheets, run the macro, select one or more ranges when prompted (to select multiple ranges, hold the Ctrl key), and click OK.
How to use the macros
The easiest way is to download our sample workbook with Print Area Macros and run a macro directly from that workbook. Here's how:
- Open the downloaded workbook and enable the macros if prompted.
- Open your own workbook.
- In your workbook, press Alt + F8, select the macro of interest, and click Run.
The sample workbook contains the following macros:
- SetPrintAreaSelectedSheets - sets the print area in the selected sheets as on the active sheet.
- SetPrintAreaAllSheets – sets the print area in all sheets of the current workbook as on the active sheet.
- SetPrintAreaMultipleSheets - sets the specified print area in all the selected worksheets.
Alternatively, you can save your file as a macro-enabled workbook (.xlsm) and add a macro to it. For the detailed step-by-step instructions, please see How to insert and run VBA code in Excel.
How to change print area in Excel
Accidentally included irrelevant data or missed selecting a few important cells? No problem, there are 3 easy ways to edit print area in Excel.
How to expand print area in Excel
To add more cells to the existing print area, just do the following:
- Select the cells that you'd like to add.
- On the Page Layout tab, in the Page Setup group, click Print Area > Add to Print Area.
This is of course the fastest way to modify print area, but not transparent. To get it right, here are a few important things to remember:
- The Add to Print Area option appears only when the worksheet already has at least one print area.
- If the cells you are adding are not adjacent to the existing print area, a new print area is created, and it will print as a different page.
- If the new cells are adjacent to the existing print area, they will be included in the same area and printed on the same page.
Edit print area in Excel by using Name Manager
Every time you set a print area in Excel, a defined range named Print_Area is created, and there is nothing that would prevent you from modifying that range directly. Here's how:
- On the Formulas tab, in the Defined Names group, click Name Manager or press Ctrl + F3 shortcut.
- In the Name Manager dialog box, select the range you want to change and click the Edit button.
Change print area via Page Setup dialog box
Another quick way to adjust print area in Excel is to use the Page Setup dialog box. The best thing about this method is that it lets you make any changes you want – modify the print area, delete or add a new one.
- On the Page Layout tab, in the Page Setup group, click the dialog launcher (a small arrow in the lower-right corner).
- On the Sheet tab of the Page Setup dialog box, you will see the Print area box and can do your edits right there:
- To modify the existing print area, delete and type the correct references manually.
- To replace the existing area, put the cursor in the Print area box and select a new range on the sheet. This will remove all the existing print areas so only the selected one is set.
- To add a new area, press and hold the Ctrl key while selecting a new range. This will set a new print area in addition to the existing one(s).
How to clear print area in Excel
Clearing the print area is as easy as setting it :)
- Open the worksheet of interest.
- Switch to the Page Layout tab > Page Setup group and click the Clear Print Area button.
How to lock print area in Excel
If you frequently share your workbooks with other people, you may want to protect the print area so that no one could mess up your printouts. Regrettably, there is no direct way to lock the print area in Excel even by protecting a worksheet or workbook.
The only working solution to protect print area in Excel is with VBA. For this, you add the Workbook_BeforePrint event handler that silently forces the specified print area just before printing.
A simpler way would be to set the event handler for the active sheet, but this works with the following caveats:
- All your worksheets should have the same print rage(s).
- You will need to select all the target sheet tabs before printing.
If different sheets have different structure, then specify the print area for each sheet individually.
The above macro sets the print area to A1:D10 for Sheet1 and to A1:F10 for Sheet2. You are free to change these as desired as well as to add more sheets.
To add the event handler in your workbook, carry out these steps:
- Press Alt + F11 to open the Visual Basic Editor.
- In the Project Explorer window on the left, expand the target workbook's node and double-click ThisWorkbook.
- In ThisWorkbook Code window, paste the code.
Excel print area problems
Most printing problems in Excel usually relate to the printer settings rather than print area. Nevertheless, the following troubleshooting tips may come in helpful when Excel is not printing the correct data.
Cannot set print area in Excel
Problem: You can't get Excel to accept the print area that you define. The Print Area field shows some odd ranges, but not the ones you have entered.
Solution: Try to clear print area completely, and then select it anew.
Not all columns are printed
Problem: You have selected a certain number of columns for the print area, but not all of them are printed.
Solution: Most likely, the column width exceeds the paper size. Try making the margins narrower or adjust scaling – choose Fit All Columns on One Page.
Excel 11 For Mac Send Worksheet As Email
The print area prints on several pages
Problem: You want the one-page printout, but it prints on several pages.
Solution: Non-adjacent rages are printed on individual pages by design. If you selected just one range but it gets split to several pages, then most probably it is bigger than the paper size. To fix this, try setting all margins close to 0 or choose Fit Sheet on One Page. For more details, please see How to print Excel spreadsheet on one page.
That's how you set, change and clear print area in Excel. I thank you for reading and hope to see you on our blog next week!