Article ID: 202017
Article Last Modified on 10/11/2006
Sub SwitchPrinter()
Dim strActivePrinter As String
' Get active printer.
strActivePrinter = Application.ActivePrinter
' Change to the Microsoft Fax printer driver.
Application.ActivePrinter = "Microsoft Fax"
' Print the active document to Fax.
ActiveDocument.PrintOut
' Change back to the default printer.
Application.ActivePrinter = strActivePrinter
End Sub
ARTICLE-ID: 163435
TITLE : VBA: Programming Resources for Visual Basic for Applications
Additional query words: vb vba
Keywords: kbhowto kbmacroexample kbprogramming KB202017