_Application.FileValidation Property
Gets or sets how Microsoft Excel will validate files before opening them.
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Syntax
'Declaration
Property FileValidation As MsoFileValidationMode
Get
Set
'Usage
Dim instance As _Application
Dim value As MsoFileValidationMode
value = instance.FileValidation
instance.FileValidation = value
MsoFileValidationMode FileValidation { get; set; }
Property Value
Type: Microsoft.Office.Core.MsoFileValidationMode
A MsoFileValidationMode object.
Remarks
Read/write.
Files that do not pass validation will be opened in a Protected View window. If you set the FileValidation property, that setting will remain in effect for the entire session the application is open.