Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, and 2013. If you are using an earlier version (Excel 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Excel, click here: Working With Multiple Printers.

Working with Multiple Printers

by Allen Wyatt
(last updated December 23, 2015)

2

You already know that Windows supports multiple printers. Using Excel with multiple printers can be a bother, however, since you must display the Print dialog box (Excel 2007) or the Print information (Excel 2010 and Excel 2013), change the printer, and then print the worksheet.

There is a way, however, that you can have one-click printing of your worksheets on a designated printer. To do this, simply create a macro that changes the printer and then prints the worksheets. Here is a macro that will accomplish the task:

Sub GoodPrinter()
    Application.ActivePrinter = "HP LaserJet"
    ActiveWindow.SelectedSheets.PrintOut Copies:=1
End Sub

When you create this macro on your system, make sure you change the printer name in the second line of the macro. It must exactly match the name of a printer on your system. (In this example the printer name is set to "HP LaserJet". You should change it to match the name of the printer you want used.)

The trick is to create one of these macros for each of the printers you use. You can add a command for each printer to your Quick Access Toolbar so that each printer has its own print button. When you then click on the command or button, the appropriate macro is run and you get output on the desired printer.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (12578) applies to Microsoft Excel 2007, 2010, and 2013. You can find a version of this tip for the older menu interface of Excel here: Working With Multiple Printers.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He  is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Determining the Day of the Year

Need to find out the day of the year for a particular date? It's easy to do if you are using a macro. All you need to do is ...

Discover More

Unable to Set Margins in a Document

If you find that you cannot set the margins in a document, chances are good that it is due to document corruption. Here's how ...

Discover More

Printing a Portion of a Worksheet

Need to print a portion of a worksheet, but don't want to waste paper by printing the whole thing? It's easy to print just ...

Discover More

Professional Development Guidance! Four world-class developers offer start-to-finish guidance for building powerful, robust, and secure applications with Excel. The authors show how to consistently make the right design decisions and make the most of Excel's powerful features. Check out Professional Excel Development today!

More ExcelTips (ribbon)

Printing a Range of Pages

If your worksheet, when printed, requires more than a single page to print, you may want to only print a range of the ...

Discover More

Setting Default Print Margins

Don't like the print margins that Excel uses by default? You can change the default by changing the workbook on which Excel ...

Discover More

Top Margin Ignored when Printing

When you press the Print button in Excel, you want your worksheet to go to your printer and produce output as you expect. ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 4 + 2?

2015-12-23 13:07:55

Morris Manning

This tip works great if file is used only on user's computer. If file may be copied or moved to another computer which may not have access to same printers, I would put a line in print macro to bring up a printer selection option. There are various ways to do this.


Sub QuickPrint()
'Prints to default printer
ActiveWindow.SelectedSheets.PrintOut Copies:=1
End Sub

Sub SelectPrinter()
'Opens Printer Selection Dialog
Application.Dialogs(xlDialogPrinterSetup).Show
End Sub

Sub OpenPrintPreview()
'Opens Print Preview Dialog
ActiveWindow.SelectedSheets.PrintPreview
End Sub


2015-03-20 00:25:36

Jojo Berago

I have a workbook with 4 sheets that normally prints on Toshiba Laser Printer using A4-size paper. Now I want to add another sheet that I needs to be printed on Intermec Barcode Printer using a continuous form of 4"x2" label (which is defined as "New Stock" size).
When I changed the page setup of this 5th sheet, the other worksheets 1-4 also changed... and there is no more option to set the page size to A4-size because the Intermec Barcode Printer does not handle this paper size.
How do I setup my 5th worksheet to different printer without affecting the other worksheets?


This Site

Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.