Hi,
Thanks for reaching out to Microsoft Q&A forum support.
I understand you are experiencing an issue where macros are blocked in Excel when exporting data from the Samsung Heavy Industries SAP system using Microsoft Office 2024.
This behavior is caused by Microsoft Office's enhanced macro security, which automatically disables macros in files originating from untrusted sources to protect users from potential malware. As Microsoft explains: Macros from the internet are blocked by default in Office – Microsoft Learn
To resolve this, please follow the steps below to either unblock the file or trust the file location, depending on your organization's security policy:
Option 1. Unblock the file manually
This method is useful if you're working with a single file and want to allow macros to run.
- Right-click the Excel file exported from SAP.
- Select Properties.
- In the General tab, check the box labeled Unblock (if it appears).
- Click Apply, then OK.
- Reopen the file and click Enable Content when prompted.
This removes the "Mark of the Web" (MOTW), which is what causes Office to block macros.
Option 2. Add the file location to Trusted Locations
This is recommended if you frequently receive files from the same folder or system.
- Open Excel.
- Go to File > Options > Trust Center > Trust Center Settings.
- Click Trusted Locations.
- Click Add new location.
- Browse to the folder where SAP saves exported files.
- (Optional) Check Subfolders of this location are also trusted.
- Click OK to save.
Trusted Locations for Office files – Microsoft Learn (This page provides detailed guidance on how Trusted Locations work, how to configure them, and the security implications of enabling them).
Best wishes,
Peter | Microsoft Q&A Support Moderator.