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:
- The add-in for MyProduct and for MySum is already loaded.
- The add-in for MyProduct and for MySum exists at the same location as where the workbook was last saved.
The formula appears in the workbook as follows:
=MyProduct(MySum(A1,B1,C1,D1) + MySum(A2,B2,C2,D2) + MySum(A3,B3,C3,D3)) +
MyProduct(MySum(E1,F1,G1,H1) + MySum(E2,F2,G2,H2) + MySum(E3,F3,G3,H3)) +
MyProduct(MySum(I1,J1,K1,L1) + MySum(I2,J2,K2,L2) + MySum(I3,J3,K3,L3)) +
MyProduct(MySum(M1,N1,O1,P1) + MySum(M2,N2,O2,P2) + MySum(M3,N3,O3,P3))
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:
='C:\Program Files\My Application\MyXLAddin.xla'!MyProduct(
'C:\Program Files\My Application\MyXLAddin.xla'!MySum(A1,B1,C1,D1) +
'C:\Program Files\My Application\MyXLAddin.xla'!MySum(A2,B2,C2,D2) +
'C:\Program Files\My Application\MyXLAddin.xla'!MySum(A3,B3,C3,D3)) +
'C:\Program Files\My Application\MyXLAddin.xla'!MyProduct(
'C:\Program Files\My Application\MyXLAddin.xla'!MySum(E1,F1,G1,H1) +
'C:\Program Files\My Application\MyXLAddin.xla'!MySum(E2,F2,G2,H2) +
'C:\Program Files\My Application\MyXLAddin.xla'!MySum(E3,F3,G3,H3)) +
'C:\Program Files\My Application\MyXLAddin.xla'!MyProduct(
'C:\Program Files\My Application\MyXLAddin.xla'!MySum(I1,J1,K1,L1) +
'C:\Program Files\My Application\MyXLAddin.xla'!MySum(I2,J2,K2,L2) +
'C:\Program Files\My Application\MyXLAddin.xla'!MySum(I3,J3,K3,L3)) +
'C:\Program Files\My Application\MyXLAddin.xla'!MyProduct(
'C:\Program Files\My Application\MyXLAddin.xla'!MySum(M1,N1,O1,P1) +
'C:\Program Files\My Application\MyXLAddin.xla'!MySum(M2,N2,O2,P2) +
'C:\Program Files\My Application\MyXLAddin.xla'!MySum(M3,N3,O3,P3))
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.