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.

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


2

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:

If you would like to know how to use the macros described on this page (or on any other page on the WordTips sites), I've prepared a special page that includes helpful information. Click here to open that special page in a new browser tab.

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.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Testing if Word is Running on a Windows or Mac System

When creating macros for others to use, it can be helpful to know whether those others are running the macro on a Windows ...

Discover More

Understanding At Least Line Spacing

Line spacing is used to control how close lines are to each other within a paragraph. Word allows you to specify several ...

Discover More

Reducing Document Size with Many Images

Word allows you to easily add pictures to your document. When you do, the size of your document can quickly become quite ...

Discover More

Comprehensive VBA Guide Visual Basic for Applications (VBA) is the language used for writing macros in all Office programs. This complete guide shows both professionals and novices how to master VBA in order to customize the entire Office suite for their needs. Check out Mastering VBA for Office 2010 today!

More WordTips (ribbon)

Two Page Numbers per Physical Page

Want to save paper when printing your document? Just print two pages per sheet of paper and you'll get rid of only half ...

Discover More

Two Printed Copies to Different Paper Trays

Many modern printers include multiple paper trays that can be used for different types or colors of paper. Word allows ...

Discover More

Reversing Print Order

When you print a document, does it come out of the printer in the order you need? Here's how to reverse the print order ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 8 + 7?

2022-03-29 11:44:52

Jim Guigli

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


This Site

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.

Videos
Subscribe

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.