Options.WarnBeforeSavingPrintingSendingMarkup Property

Word Developer Reference

True for Microsoft Office Word to display a warning when saving, printing, or sending as e-mail 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.

Visual Basic for Applications
  Sub SaferPrint
    Dim blnOldState as Boolean
'Save old state in variable
blnOldState = Application.Options.<strong class="bterm">WarnBeforeSavingPrintingSendingMarkup</strong>

'Turn on warning
Application.Options.<strong class="bterm">WarnBeforeSavingPrintingSendingMarkup</strong> = True

'Print document
ActiveDocument.PrintOut

'Restore original warning state
Application.Options.<strong class="bterm">WarnBeforeSavingPrintingSendingMarkup</strong> = blnOldState

EndSub

See Also