RemoveLockedStyles Method

Microsoft Word Visual Basic

RemoveLockedStyles Method

Purges a document of locked styles when formatting restrictions have been applied in a document.

expression.RemoveLockedStyles

expression    Required. An expression that returns a Document object.

Example

The following example purges the locked styles in the active document.

    ActiveDocument.RemoveLockedStyles