Düzenle

Aracılığıyla paylaş


Options.WarnBeforeSavingPrintingSendingMarkup property (Word)

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

Syntax

expression. WarnBeforeSavingPrintingSendingMarkup

expression An expression that returns a 'Options' object.

Example

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 
 ActiveDocument.PrintOut 
 
 'Restore original warning state 
 Application.Options.WarnBeforeSavingPrintingSendingMarkup = blnOldState 
 
EndSub

See also

Options Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.