The error has a link that takes you here
A potentially dangerous macro has been blocked (microsoft.com)
However the option to check mark unblock does not exist on the file. There is nothing below attributes. This page makes no sense to me, I have never in my entire IT career seen this option that supposedly should be there.
I have gone into Options > Trust center > Trusted Location.
I have checked Allow trusted locations on my network.
I have then tried to add the location of the share drive.
I get "The path you have used cannot be used as a trusted location for security reasons".
Quite frustrated at this point I created a registry entry with the file share. (HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\16.0\Excel\Security\Trusted Locations)
The network drive now shows as the file share as a trusted location in excel.
I still get the same Security risk error.
These files have existed for quite some time and we have never had this issue previously. If there were any recent changes or updates I am unaware of them. Moving the file locally to my computer gets rid of the error but this is not a solution as the files need to be on the network drive. This error affects multiple macro files on the share drive not just a single file.