Article ID: 817578 - View products that this article applies to.
When you try to find and to change the link source of a Microsoft Excel Add-In (*.xla) that is referenced by a workbook, and the existing link source contains a long path, you may receive the following error message:
Formula is too long.
When you open an Excel workbook, the external add-in reference is resolved. The add-in is loaded by using the last-saved path of the add-in. If the add-in cannot be found, Excel prompts you for the add-in location. The add-in may not be found if the workbook was transferred to a different computer or to a different mapped drive. If you later select a location or try to update links, you may receive the error message that is mentioned in the "Symptoms" section. This problem occurs if one or more cells contains formulas that are large, and the cells use one or more of the add-in functions.
This problem occurs when an add-in reference is either missing or changed. Excel appends the full path of the add-in name to the formula for qualification. If a formula is either large or contains multiple calls to add-in functions, and the path that is appended is long, the total length of the formula may be greater than the internal limit of 1024 characters. This is the cause of the error. If the error occurs, the link path cannot be changed, and the workbook cannot use the add-in from the new location.
If you use the following formula in a cell, and one of the following conditions is true, the problem occurs:
However, if the add-in is not loaded and is missing from the original path, the add-in name is fully qualified with the last known path and is appended to each add-in function that is used in the formula. The result may be a formula that is greater than 1024 characters. The following is an example:
The qualified function name in the formula cannot be changed because the length limit prevents editing of the cell without potential truncation of the formula and loss of data. As a result, Excel prevents the action and you may receive the error message that is mentioned in the "Symptoms" section.
If you receive this error message, Microsoft recommends that you close the workbook without saving. Then, return the workbook to the original owner to change the add-in location to a shared folder location, such as the library folder, that permits you to share the workbook. Or, the large formula can be changed by dividing the formula into two or more sub-formulas. After the workbook is saved and then reopened, the problem does not occur.
Alternatively, if you have the add-in, but it is in a different path, you can copy the add-in to the path that is specified by the formula. Load the add-in from that path and then reopen the workbook. This avoids the qualification of the function names. You can then change the link to a shorter path, or you can remove the long formula.
This problem occurs only for workbooks that have missing links or broken links.
The formula length is limited to 1024 Unicode characters by the internal workings of Excel. For additional information about these limits, click the following article number to view the article in the Microsoft Knowledge Base:
(https://support.microsoft.com/kb/264626/ )Microsoft Excel 2000 specifications
Article ID: 817578 - Last Review: October 6, 2011 - Revision: 9.0