» Change the default printer using VBA in Microsoft Excel
VBA macro tip contributed by Erlandsen Data Consulting offering Microsoft Excel Application development, template customization, support and training solutions
CATEGORY - Printing in VBA
VERSION - All Microsoft Excel Versions
This is done by changing the property Application.ActivePrinter :
Sub PrintToAnotherPrinter()
Dim STDprinter As String
STDprinter = Application.ActivePrinter
Application.ActivePrinter = "microsoft fax on fax:"
' change printer
ActiveSheet.PrintOut
' prints the active sheet
Application.ActivePrinter = STDprinter
' change back to standard printer
End Sub
Book Store:
Recommended Books:
- Now, Discover Your Strengths
- Accounting and Financial Fundamentals for Nonfinancial Executives
- The Essential 55: An Award-Winning Educator's Rules for Discovering the Successful Student in Every Child
- A Mathematician Plays the Stock Market
- Cashflow Quadrant: Rich Dad's Guide to Financial Freedom
- The South Beach Diet: The Delicious, Doctor-Designed, Foolproof Plan for Fast and Healthy Weight Loss
No comments have been submitted.

