Printing in VBA to send print job as one batch

MrKowz

Well-known Member
Joined
Jun 30, 2008
Messages
6,653
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Is there a way to print individual sheets in VBA and send to the printer as a single printjob? In my office, approx 30 people use the same printer, and it gets quite annoying when my print job of 6 sheets has pages from other employees mixed in the middle (especially when someone decides to run 300-400 pages of SAP data)

Here is the code I'm currently using to print:

Code:
        With Sheets("Checklist")
            .PageSetup.LeftFooter = Sheets("Client Information").Range("C2").Value
            .PrintOut
        End With
        If Year(DOE) <= 2002 Then
            With Sheets("Manual Calculations")
                .PageSetup.LeftFooter = Sheets("Client Information").Range("C2").Value
                .PrintOut
            End With
            With Sheets("PROI Lookup")
                .PageSetup.LeftFooter = Sheets("Client Information").Range("C2").Value
                .PrintOut
            End With
        End If
        With Sheets("calculation")
            .PageSetup.LeftFooter = Sheets("Client Information").Range("C2").Value
            .PrintOut
        End With
        With Sheets("Benefits Calculation Form")
            .PageSetup.LeftFooter = Sheets("Client Information").Range("C2").Value
            .PrintOut
        End With
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.

Forum statistics

Threads
1,214,665
Messages
6,120,804
Members
448,990
Latest member
rohitsomani

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top