Corrupting of Excel file with macros after opening from vault.
Steps to reproduse:
Copy a macro-enabled file (File.xlsm) into a 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.”
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.”
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)”