A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
Hi @Fenni Tambou
According to Request access to multiple files | Microsoft Learn, this is expected behavior on macOS.
Excel for Mac (2016 and later) runs in a sandboxed environment, which means VBA and FileSystemObject (FSO) cannot write outside of Excel’s container unless the user explicitly grants permission using GrantAccessToMultipleFiles.
For scenarios such as unattended logging, the only reliable approach is to write files inside Excel’s sandbox container:
- ~/Library/Containers/com.microsoft.Excel/Data
- ~/Library/Group Containers/UBF8T346G9.Office
Please read more at Sandbox | Mac Excel Automation.
Granting Excel Full Disk Access in macOS settings may help in certain cases, but this is not documented or supported by Microsoft. You can refer to excel - VB Macros for Office 2016 for Mac require Permissions every time they try to access a file!…
This information is provided as a convenience to you. These sites are not controlled by Microsoft, and Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please ensure that you fully understand the risks before using any suggestions from the above link.
I hope this information is helpful.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.