Written by Allen Wyatt (last updated August 1, 2020)
This tip applies to Word 2007, 2010, 2013, 2016, 2019, and Word in Microsoft 365
When Stephen chooses to print something, Word warns him that what he is trying to print is "outside the printing boundaries," but he can still print. Stephen wonders if there is any way to tell Word that he always prints outside the boundaries so that he doesn't always have to deal with this notification.
There is no way to turn this notification on or off—in other words, it is not a configuration setting you can make in the program. You can, however, turn off notifications while running a macro. This means that you can print via a macro, and simply turn notifications off just before printing and turn them back on right after printing. You do this using the DisplayAlerts property:
Application.DisplayAlerts = wdAlertsNone Application.DisplayAlerts = wdAlertsAll
The first line turns off alerts and the second turns them on. It is important to remember that these lines are always used as a pair. If you turn off alerts and never turn them back on, you won't see any alerts even after the macro is ended.
A simple way to use them in a macro is shown here:
Sub PrintMyDocument() With Application .DisplayAlerts = wdAlertsNone .PrintOut Background:=False .DisplayAlerts = wdAlertsAll End With End Sub
In order to use the macro, simply load the document you want to print and then run the macro. You won't see the notifications appear.
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 (7594) applies to Microsoft Word 2007, 2010, 2013, 2016, 2019, and Word in Microsoft 365.
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!
We click the button to print our document and seldom think of what is happening behind the scenes. Word prints documents, ...
Discover MoreGetting a Word document into a PDF format that a commercial printer can use can be challenging. This tip examines just ...
Discover MoreWord maintains quite a bit of information about a document in a special collection of items called "properties." You can ...
Discover MoreFREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."
There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)
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 © 2023 Sharon Parq Associates, Inc.
Comments