Article ID: 163574
Article Last Modified on 1/19/2007
Sub TurnOffAlertsAndPrint()
' Store current Background Printing setting.
Dim x As Boolean
x = Options.PrintBackground
' Turn off error messaging and Background Printing.
Application.DisplayAlerts = wdAlertsNone
Options.PrintBackground = False
' Print the active document.
ActiveDocument.PrintOut
' Turn on error messaging and restore Background Printing
' to original setting.
Application.DisplayAlerts = wdAlertsAll
Options.PrintBackground = x
End Sub
For more information about DisplayAlerts, from the Visual Basic for
Applications Editor, click the Office Assistant, type "DisplayAlerts,"
click Search, and then click to view "DisplayAlerts Property."
Additional query words: wordcon 97 word8 word97 8.0 vb vbe vba
Keywords: KB163574