Document.OptimizeForWord97 Property (Word)

Office 2013 and later
GitHub-Mark-64px

Contribute to this content

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

True if Microsoft Word optimizes the current document for viewing in Microsoft Word 97 by disabling any incompatible formatting. Read/write Boolean.

expression .OptimizeForWord97

expression A variable that represents a Document object.

To optimize all new documents for Word 97 by default, use the OptimizeForWord97byDefault property.

This example checks the current document to see if it is optimized for Word 97; if it is not, the example asks the user whether it should be.

If ActiveDocument.OptimizeForWord97 = False Then 
 x = MsgBox("Is this document targeted at " _ 
 & "Word 97 users?", vbYesNo) 
 If x = vbYes Then _ 
 ActiveDocument.OptimizeForWord97 = True 
End If
Show: