How to Stop Excel Security Warnings After Adding an Erlang Function
Question details
The user needs to prevent Excel from displaying recurring security warnings after inserting a custom Erlang function or other active content into a workbook.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Opening a local workbook that contains custom macros or Erlang functions, which triggers Excel's default active content blocking.
- Observed behavior
- Excel persistently displays security warnings that block the custom functions or active content from running automatically.
Verify that the workbook containing the Erlang function is from a safe and reliable source, as bypassing security warnings for unknown files can expose your system to malicious code.
Add a Trusted Location in Excel Trust Center
By designating a specific folder on your computer as a Trusted Location, Excel will automatically trust and open any workbooks placed there without triggering security warnings for custom functions or macros.
This method is intended primarily for local workbooks. Once a folder is designated as trusted, all active content, including Erlang functions and VBA macros within that folder, will run seamlessly.
Launch Microsoft Excel, click on 'File' in the top left corner of the ribbon, and select 'Options' at the bottom of the left-hand menu.
In the Excel Options window, click on 'Trust Center' in the left pane, then click the 'Trust Center Settings...' button on the right.
Select 'Trusted Locations' from the left menu. Click the 'Add new location...' button near the bottom of the window.
Click 'Browse' to select the folder where you save the workbooks containing your Erlang functions. Once selected, click 'OK' to confirm, and move your local workbook into this trusted folder.

Experience a Streamlined, Secure Spreadsheet Environment with WPS Office
If you are tired of dealing with complex security policies and macro blocks in Microsoft Excel, consider trying WPS Office. It provides a lightweight, highly compatible spreadsheet solution that balances user security with ease of use.
- 1. Download and Install WPS Office: Visit the official WPS Office website to download the free installation package for your operating system.
- 2. Open Your Excel Files: Launch WPS Spreadsheet and go to Menu > Open to load your existing .xlsx or .xlsm files directly.
- 3. Enjoy Seamless Data Processing: Process your data, run customized formulas, and manage your spreadsheets with enhanced performance and fewer interruptions.

Frequently Asked Questions
Why does Excel block my custom Erlang functions by default?
Excel's default security architecture is designed to protect your system from potentially malicious code. It treats custom functions, macros, and external add-ins as active content and blocks them until you explicitly confirm they are safe.
Can I disable macro security warnings for all files?
While it is technically possible to choose 'Enable all macros' in the Trust Center settings, it is highly discouraged. Doing so makes your computer extremely vulnerable to harmful scripts. Setting up specific Trusted Locations is the safest approach.
What should I do if the 'Trusted Locations' option is missing or greyed out?
If you cannot access or modify Trusted Locations, your organization's IT administrator has likely restricted this feature using Group Policy. You will need to contact your IT support team to have your desired folder whitelisted.




