Application.FileValidation 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.

Returns or sets how Word will validate files before opening them. Read/write MsoFileValidationMode.

expression .FileValidation

expression A variable that represents an Application object.

Return Value

Files that do not pass validation will be opened in a Protected View window. The FileValidation property is per session only. If you set the FileValidation property, that setting will remain in effect for the entire session the application is open.

Show: