Workbook.ChangeFileAccess Method (XlFileAccess, Object, Object)
Changes the access permissions for the workbook. This might require an updated version to be loaded from the disk.
Assembly: Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)
One of the XlFileAccess values. Specifies the new access mode.
- Type: System.Object
true to notify the user if the file cannot be immediately accessed.
If you have a file open in read-only mode, you do not have exclusive access to the file. If you change a file from read-only to read/write, Microsoft Office Excel must load a new copy of the file to ensure that no changes were made while you had the file open as read-only.