OzGrid

How to print to specific network printer

< Back to Search results

 Category: [Excel]  Demo Available 

How to print to specific network printer

 

Requirement:

 

The user is looking for a macro that will print to a specific network printer and incorporate a specific printing profile that is setup for that printer. The user's team runs reports that are printed on different color paper (green paper and gray paper with a staple) and third copy on white paper with a staple and water mark. 

 

The user already has the profiles setup but  was wondering if there is a way find the network printer, use those profiles and automatically print them with the click of a button.

 

Solution:

 

Code:
Function SelePrn()
    Application.Dialogs(xlDialogPrinterSetup).Show
End Function

 

Obtained from the OzGrid Help Forum.

Solution provided by Keebellah.

 

See also: Index to Excel VBA Code and Index to Excel Freebies and Lesson 1 - Excel Fundamentals and Index to how to… providing a range of solutions and Index to new resources and reference sheets

 

See also:

How to use VBA code to print out an area
How to use VBA code to print number of copies based on cell value
How to create VBA code to increment number each time a copy is printed
How to print range excluding blank rows with formulas

 

Click here to visit our Free 24/7 Excel/VBA Help Forum where there are thousands of posts you can get information from, or you can join the Forum and post your own questions.

 

 


Gallery



stars (0 Reviews)