Written by Allen Wyatt (last updated October 14, 2023)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, 2021, and Excel in Microsoft 365
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 or a later version), 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.)
This macro approach changes the name of the printer being used in Excel. If you don't want to disturb whatever printer was active before your macro was run, you can modify it slightly in this manner:
Sub GoodPrinter() Dim sPName As String sPName = Application.ActivePrinter Application.ActivePrinter = "HP LaserJet" ActiveWindow.SelectedSheets.PrintOut Copies:=1 Application.ActivePrinter = sPName End Sub
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.
Note:
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (12578) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, 2021, and Excel in Microsoft 365. You can find a version of this tip for the older menu interface of Excel here: Working With Multiple Printers.
Create Custom Apps with VBA! Discover how to extend the capabilities of Office 2013 (Word, Excel, PowerPoint, Outlook, and Access) with VBA programming, using it for writing macros, automating Office applications, and creating custom applications. Check out Mastering VBA for Office 2013 today!
Excel can print your worksheets in either black and white or color. If you want to print everything in black and white ...
Discover MoreWhen you press the Print button in Excel, you want your worksheet to go to your printer and produce output as you expect. ...
Discover MoreIf you need to change the size of paper on which your worksheets will be printed, it can be bothersome to make the change ...
Discover MoreFREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)
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.
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
Copyright © 2025 Sharon Parq Associates, Inc.
Comments