» 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:
- How to Use Financial Statements: A Guide to Understanding the Numbers
- Microsoft Word Version 2002 Inside Out
- MP Managerial Accounting w/ Topic Tackler, Net Tutor, & PowerWeb
- Understanding Financial Statements
- Advanced modelling in finance using Excel and VBA
- Good to Great: Why Some Companies Make the Leap... and Others Don't
No comments have been submitted.

