Summary:
Corrupting of Excel file with macros after opening from vault.
Steps to reproduse:
Unlock vault
Copy a macro-enabled file (File.xlsm) into a vault
Lock vault
Unlock vault
Open the File.
Click “Enable macros” button in Excel app
Click Save button in Excel
Get an Alert “The document was saved successfully, but Excel cannot re-open it because of a sharing violation. Please close the document and try to open it again.”
Press OK
Close Excel
Open the File again
Get an Error “Excel cannot open the file ’File.xlsm’ because the file format or file extension is not valid. Verify that the file has not been corrupted and that the file extension matches the format of the file.”
Press OK.
Try to copy the File from Vault to other location (e.g. local filesystem).
Get an MacOS error: “The Finder can’t complete the operation because some data in “File.xlsm” can’t be read or written. (Error code -36)”