Please Note: This article is written for users of the following Microsoft Word versions: 2007, 2010, 2013, 2016, 2019, and Word in Microsoft 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.
Written by Allen Wyatt (last updated March 29, 2022)
This tip applies to Word 2007, 2010, 2013, 2016, 2019, and Word in Microsoft 365
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.
Note:
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 Microsoft 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!
If you need to print the mirror image (backwards) of a document, you may think you are out of luck in Word. There are ...
Discover MoreNeed to print on large pieces of paper? Word has a limit on the size of the paper it can use, but that might not be the ...
Discover MoreGetting a list of fonts available in a document is not something you can easily do in Word. That is, unless you put the ...
Discover MoreFREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."
2022-03-29 11:44:52
I don't use macros (too many other things to learn right now) but I have a problem that a macro might solve:
I want to print a draft of my novel at home. It is set up for a half-sheet book (8.5" x 5.5"), which means, for example, there would be page 33 & 34 side-by-side on one side of an 8.5" x 11" sheet with pages 35 & 36 side-by-side on the opposite side. I don't know of any home printer, ink jet or laser, that will do this. (Mine is an ink jet HP 9025e.) I write in WORD latest version but will finish in Adobe Acrobat Pro.
I could take my draft to someone who does print-on-demand but that means paying for set-up and one copy each time I make a change. Has anyone done this? Thank you.
2022-03-29 07:30:00
Rebekah Rainey
Disable Print Notifications using a Macro
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.
Visit the WordTips channel on YouTube
FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."
Copyright © 2024 Sharon Parq Associates, Inc.
Comments