I had a macro that will be executed using UiPath. This code basically takes data from 4 Excel files, which will always be opened by someone, causing a read-only pop-up alert. In the code, I have set DisplayAlerts = False, and it works if I run the code directly in Excel. However, when the code is executed by UiPath, the pop-up still appears.
Try changing existing process action and file conflict resolution as well
Ideally when running macro you would have opened the excel already so there might not be an issue but in this case the excel is being opened programmatically so first opening happens and then display alerts come into picture