Please Note: This article is written for users of the following Microsoft Word versions: 2007, 2010, 2013, 2016, 2019, and Word in Office 365. If you are using an earlier version (Word 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Word, click here: Printing via Macro without Messages.
by Allen Wyatt
(last updated May 5, 2018)
Vidar is trying to print a Word document by automation. When printing, Word interrupts the print job, displaying a dialog box that indicates the document is too wide for the selected printer and asking if it should be printed anyway. Vidar wonders if there is a way to suppress this notification programmatically and always print anyway.
Perhaps the easiest way is to simply turn off notifications just before you start to print. Simply add this line to your macro:
Application.DisplayAlerts = False
This turns off the alerts (in this case, the unwanted dialog box). You can later, after the printing is done, set the DisplayAlerts property back to True so that regular notifications occur.
WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (11573) applies to Microsoft Word 2007, 2010, 2013, 2016, 2019, and Word in Office 365. You can find a version of this tip for the older menu interface of Word here: Printing via Macro without Messages.
Create Custom Apps with VBA! Discover how to extend the capabilities of Office 2013 (Word, Excel, PowerPoint, Outlook, and Access) with VBA programming, using it for writing macros, automating Office applications, and creating custom applications. Check out Mastering VBA for Office 2013 today!
Need to add a unique serial number to each printed copy of your document? Here's a quick way to print such numbered versions.Discover More
Do you like using ASK Fields in your documents to get information from the user but don't want Word to update the fields ...Discover More
Do you want to transfer fonts from one computer system to another? It is relatively easy to do, but there is one ...Discover More
FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."
Got a version of Word that uses the ribbon interface (Word 2007 or later)? This site is for you! If you use an earlier version of Word, visit our WordTips site focusing on the menu interface.