Printing Problems

How to Add Separate Printer Buttons to the Excel Quick Access Toolbar

Camila MilosovichCamila Milosovich Nov 4, 2026 871 views

Question details

The user wants to add separate buttons to the Quick Access Toolbar to quickly print to different specific printers (such as a black-and-white printer and a color printer) without manually opening the Print dialog.

How to Add Separate Printer Buttons to the Excel Quick Access Toolbar
Product
Microsoft Excel
Device & OS
not provided
Scenario
Frequently printing spreadsheet documents to different printers and needing a customized, one-click printing shortcut to improve workflow efficiency.
Observed behavior
Excel does not offer built-in Quick Access Toolbar buttons assigned to specific individual printers, forcing users to manually select the printer each time.
Before you start

Ensure the Developer tab is enabled in your Excel ribbon to access VBA features, and take note of the exact system names of your target printers.

Solution 1Recommended

Create VBA Macros and Assign Them to the Quick Access Toolbar

Use a VBA macro to define the ActivePrinter and print the worksheet, then assign each macro to a custom button on the Quick Access Toolbar for one-click access.

Because Excel's Quick Access Toolbar does not support assigning individual printers natively, you must use a VBA macro. By defining the active printer in the code, you can bypass the standard Print dialog and route the print job directly to your desired device.

1
Enable the Developer Tab

Go to File > Options > Customize Ribbon. In the right pane, check the box next to 'Developer' and click OK.

2
Create the Print Macro

Navigate to the Developer tab and click 'Visual Basic'. Go to Insert > Module and write a macro that sets the 'Application.ActivePrinter' to your precise printer name and port (e.g., 'Color Printer on Ne01:'), followed by 'ActiveWindow.SelectedSheets.PrintOut'.

3
Add the Macro to the QAT

Go to File > Options > Quick Access Toolbar. In the 'Choose commands from' dropdown, select 'Macros'.

4
Customize the Button

Select your new macro from the list, click 'Add' to move it to the QAT pane, then click 'Modify' to choose a recognizable icon (like a colored circle for the color printer). Click OK to save.

Create VBA Macros and Assign Them to the Quick Access Toolbar
Exact Printer Naming is Crucial: The printer name and port in your VBA script must perfectly match what Excel displays in its native Print menu. You can record a dummy macro while manually switching printers to capture the exact string.
Free Microsoft Office alternative

Experience Streamlined Spreadsheet Workflows with WPS Office

If configuring complex VBA macros for simple printing tasks feels cumbersome, try WPS Office. It provides a lightweight, highly compatible alternative for all your spreadsheet and documentation needs with robust, built-in printing capabilities.

  1. 1. Download WPS Office: Visit the official WPS website to download the free, lightweight installer.
  2. 2. Install the Software: Run the installer and follow the on-screen instructions to set up the suite in minutes.
  3. 3. Open Your Spreadsheets: Launch WPS Spreadsheets and open your existing Excel files seamlessly with perfect formatting retention.
Completely free and lightweight Office suiteFully compatible with Microsoft Excel formats (.xlsx, .xls, .csv)Intuitive, familiar interface with no learning curve requiredBuilt-in PDF conversion and versatile document handling
QA img-9

Frequently Asked Questions

How do I find the exact printer name and port for my VBA code?

The easiest method is to use the 'Record Macro' feature. Start recording a macro, go to File > Print, select the desired printer from the dropdown menu, and stop recording. Press Alt+F11 to view the generated code, which will reveal the exact printer string Excel requires.

Will these custom printer buttons work on other computers?

Usually, they will not work immediately on a different computer. Windows dynamically assigns printer ports (such as 'Ne01:' or 'Ne02:'), which often vary from one machine to another, even if the printer model is identical.

Can I set a keyboard shortcut instead of a Quick Access Toolbar button?

Yes. After creating your printing macro, press Alt+F8 to open the Macro dialog box. Select your macro, click 'Options', and type a letter to assign a custom Ctrl+Key combination for instant printing.