Document.SetCompatibilityMode method (Word)
Sets the compatibility mode for the document.
Syntax
expression. SetCompatibilityMode
( _Mode_
)
expression A variable that represents a Document object.
Parameters
Name | Required/Optional | Data type | Description |
---|---|---|---|
Mode | Required | Long | Specifies which version of Word to approximate. Use a constant from the WdCompatibilityMode enumeration as an argument for this parameter. |
Remarks
When you open a document in Word that was created in a previous version of Word, Compatibility Mode is turned on. Compatibility Mode ensures that no new or enhanced features in Word are available while working with a document, so that people who edit the document using previous versions of Word will have full editing capabilities.
Example
The following code example puts Word in Word 2003 Compatibility Mode.
ActiveDocument.SetCompatibilityMode (wdWord2003)
See also
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.
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin