Document.RemoveLockedStyles Method (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.

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

expression .RemoveLockedStyles

expression Required. A variable that represents a Document object.

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

ActiveDocument.RemoveLockedStyles
Show: