To unblock macros in your trusted .xlsm file, you can follow these steps:
- Remove the Mark of the Web: Right-click on the file, select Properties, and then check the Unblock checkbox on the General tab. This is necessary if the file has been marked as coming from an untrusted source.
- Use PowerShell: If the Unblock checkbox is not available, you can use the PowerShell cmdlet
Unblock-Fileto remove the ZoneId value from the file. This cmdlet effectively does the same thing as unblocking the file through the properties dialog. - Check Trusted Locations: Ensure that the location of the file is added as a Trusted site or is part of the Local intranet zone. You can do this through the Control Panel > Internet Options > Security settings. If the file is on a network share, ensure that the share is designated as a Trusted site.
- Open in Desktop App: If the file is stored on OneDrive or SharePoint, try opening it directly in the Desktop App instead of through the browser.
These steps should help you unblock the macros in your trusted file. If you continue to face issues, ensure that no group policies or Trust Center settings are preventing macros from running.
References: