WarnBeforeSavingPrintingSendingMarkup Property
Collapse the table of content
Expand the table of content

Options.WarnBeforeSavingPrintingSendingMarkup Property (Word)

Office 2013 and later

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

True for Microsoft Word to display a warning when saving, printing, or sending as e-mail a document containing comments or tracked changes. Read/write Boolean.

expression .WarnBeforeSavingPrintingSendingMarkup

expression An expression that returns a Options object.

This example prints the active document but allows the user to stop the print if the document contains tracked changes or comments.

Sub SaferPrint 
 Dim blnOldState as Boolean 
 'Save old state in variable 
 blnOldState = Application.Options.WarnBeforeSavingPrintingSendingMarkup 
 'Turn on warning 
 Application.Options.WarnBeforeSavingPrintingSendingMarkup = True 
 'Print document 
 'Restore original warning state 
 Application.Options.WarnBeforeSavingPrintingSendingMarkup = blnOldState 
© 2016 Microsoft