A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
If the file is trusted and the program requires both macros and ActiveX, use this order:
- Open the Excel file and look for a yellow Security Warning or Message Bar.
- For macros, click Enable Content if it appears.
- For ActiveX, click Enable Content if it appears.
- If ActiveX is still blocked, enable it in Trust Center:
- Go to File > Options > Trust Center > Trust Center Settings > ActiveX Settings.
- Select Prompt me before enabling all controls with minimal restrictions.
- Click OK, then OK again.
- Reopen the file.
- If the file says macros are disabled, check macro settings:
- Go to File > Options > Trust Center > Trust Center Settings > Macro Settings.
- Use a setting that allows notification, then reopen the file and click Enable Content when prompted.
- Warning: enabling all macros is not recommended because potentially dangerous code can run.
- If the file was downloaded and Excel says the source is untrusted, remove the block in Windows:
- In File Explorer, right-click the file and select Properties.
- On the General tab, check Unblock if that option is available.
- Select Apply and OK.
- Open the file again.
- If Unblock is not available or the file is stored in OneDrive or SharePoint, move it to a local folder and add that folder as a trusted location:
- In Excel, go to File > Options > Trust Center > Trust Center Settings > Trusted Locations.
- If Disable all Trusted Locations is checked, clear it.
- Select Add new location, browse to the local folder, and confirm it.
- Optionally select Subfolders of this location are also trusted.
- Restart Excel.
- If the file shows an ActiveX warning in Backstage view:
- Select File.
- In the Security Warning area, select Enable Content.
- Choose either:
- Always enable this document’s active content, or
- Advanced Options > Enable content for this session.
- If the workbook is also protected or locked for editing, remove restrictions that can interfere:
- In Excel, go to File > Info > Protect Workbook and remove password or restricted access settings if possible.
Security notes:
- Only enable macros or ActiveX for files from a reliable source.
- Macros are not required just to view or edit a file.
- Changing ActiveX settings affects Office apps broadly, not just one file.
- Enable or disable ActiveX settings in Office files
- ActiveX controls are disabled by default in Microsoft 365 and Office 2024
- Enable or disable macros in Microsoft 365 files
- How do I unblock macro's for a file or website? - Microsoft Q&A
- how to unblock macro in an excel file - Microsoft Q&A
- Unblock macros that Microsoft has blocked because source of the file is untrusted - Microsoft Q&A Hello, I have opened my personal daily file to have the message "Security Risk Microsoft has blocked macros from running because the source of this file is untrusted". I have checked the properties of the file and there is no area or option to click unblock. I have went into Options - Trust Center - Trust Center Settings and added the file location to the list. I have also went into Options - Trust Center - Trust Center Settings - Marco Settings and enabled VBA but still no luck being able to use my macros.
- Excel file is locked for editing