VBA & Macro Problems

Fix Excel #NAME? Errors for Custom Functions in Local XLA Add-ins

Tauseeq MagsiTauseeq Magsi Nov 2, 2026 869 views

Question details

The user needs to resolve a #NAME? error in Excel when using custom VBA functions from a local XLA file that is not loading automatically.

How to Fix Excel #NAME? Errors for Functions in Local XLA Add-ins
Product
Microsoft Excel
Device & OS
not provided
Scenario
Using custom VBA formulas stored in local XLA add-in files.
Observed behavior
Formulas return a #NAME? error unless the XLA file is opened manually, indicating the add-in is not automatically loading or installing at startup.
Before you start

Ensure you know the exact file path where your local XLA add-in is saved, and verify that the file is not corrupted by successfully opening it manually at least once.

Solution 1Recommended

Install and Enable the XLA Add-in via Excel Options

Properly installing the add-in ensures Excel automatically loads your custom functions every time you start the application.

Opening an add-in manually only works for the current session. To make the custom functions permanently available without #NAME? errors, the add-in must be properly installed and checked in the Add-ins manager.

1
Open Excel Options

Launch Excel and navigate to File > Options. From the left-hand sidebar, click on Add-ins.

2
Access the Manage Add-ins dialog

At the bottom of the window, locate the Manage drop-down menu, ensure 'Excel Add-ins' is selected, and click the 'Go...' button.

3
Browse and activate the add-in

Click the 'Browse' button to locate your local .xla file. Once selected, ensure the checkbox next to your add-in's name is checked in the list, then click OK.

Install and Enable the XLA Add-in via Excel Options
Seamless VBA Support in WPS Office

Run Custom Macros and Add-ins with WPS Spreadsheet

WPS Spreadsheet offers robust VBA and macro support out of the box. You can easily manage and load your custom .xla add-ins to maintain productivity without frustrating formula errors.

  1. 1. Access Developer Tools: Open WPS Spreadsheet, click on the Developer tab in the top ribbon menu, and select Add-Ins.
  2. 2. Manage Add-ins: In the Add-Ins dialog box, click on 'Manage' and select 'Browse' to locate your local .xla file.
  3. 3. Enable the Add-in: Check the box next to your imported add-in name and click OK. Your custom functions are now ready to use without #NAME? errors.
Fully compatible with Microsoft Excel .xla, .xlam, and .xlsm macro formats.Built-in Developer tab designed for managing macros and add-ins effortlessly.Lightweight architecture ensuring that add-ins load significantly faster.Familiar interface that eliminates the learning curve when migrating from MS Office.
microsoft office alternative - wps office

Frequently Asked Questions

Why does Excel show a #NAME? error for my custom function?

This error occurs when Excel does not recognize the function name you typed. For custom VBA functions, it usually means the add-in containing the function was not loaded properly when Excel started.

What is the difference between opening an XLA file and loading it?

Opening an XLA file temporarily makes its macros available only for that specific session. Loading it via Excel Add-ins installs it in the background, ensuring Excel automatically activates it every time you launch the software.

How do I find my XLSTART folder?

The XLSTART folder is typically located in your AppData directory. You can quickly navigate to it by pressing Win + R, typing %appdata%\Microsoft\Excel\XLSTART, and pressing Enter.

Can I create the XLSTART folder manually if it's missing?

Yes, if the XLSTART folder does not exist in your Microsoft\Excel directory, you can manually create a new folder, name it exactly XLSTART, and Excel will recognize it and load its contents upon startup.