» 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:
- Marketing Management
- Financial Reporting and Analysis (2nd Edition)
- Microsoft Word Version 2002 Inside Out
- Financial Statements: A Step-By-Step Guide to Understanding and Creating Financial Reports
- Microsoft Windows XP Step by Step (With CD-ROM)
- Millionaire Real Estate Mentor : The Secrets of Financial Freedom through Real Estate Investing
No comments have been submitted.

