Muokkaa

Jaa


Document.DisableFeatures property (Word)

True disables all features introduced after the version specified in the DisableFeaturesIntroducedAfter property. The default value is False. Read/write Boolean.

Syntax

expression. DisableFeatures

expression A variable that represents a Document object.

Remarks

The DisableFeatures property only affects the document for which you set the property. Use this property if you plan on sharing a document between users with earlier versions of Microsoft Word so that you don't end up introducing into a document features that are not available in their versions.

Example

This example disables all features added after Word for Windows 95, versions 7.0 and 7.0a, for the current document. The global default setting remains unchanged.

Sub FeaturesDisable() 
 With ActiveDocument 
 
 'Checks whether features are disabled 
 If .DisableFeatures = True Then 
 
 'If they are, disables all features after Word for Windows 95 
 .DisableFeaturesIntroducedAfter = wd70 
 Else 
 
 'If not, turns on the disable features option and disables 
 'all features introduced after Word for Windows 95 
 .DisableFeatures = True 
 .DisableFeaturesIntroducedAfter = wd70 
 End If 
 End With 
End Sub

See also

Document 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.