OfficeDev / office-js

A repo and NPM package for Office.js, corresponding to a copy of what gets published to the official "evergreen" Office.js CDN, at https://appsforoffice.microsoft.com/lib/1/hosted/office.js.
https://learn.microsoft.com/javascript/api/overview
Other
681 stars 95 forks source link

[Excel] Function Arguments dialog in Excel for Windows when equivalent XLL are specified #2035

Open sshukurov opened 3 years ago

sshukurov commented 3 years ago

Our Excel JS addin with Custom Functions has a COM equivalent, so we have EquivalentAddins element set up in our addin's manifest for XLL compatibility. While testing our addin in a scenario when the COM equivalent is NOT installed, we came across this issue when our custom functions' definition is missing in Function Arguments dialog.

Environment

Expected behavior

Function Arguments dialog displays relevant information about the custom function, its arguments and result. An example of how it looks like (without XLL compatibility in the manifest): image

Current behavior

image

Steps to reproduce

  1. Create a sample addin (Excel Custom Functions) as described here.
  2. Copy-paste the following snippet to manifest.xml (just before the closing tag for VersionOverrides element):
    <EquivalentAddins>
      <EquivalentAddin>
        <FileName>contosofunctions.xll</FileName>
        <Type>XLL</Type>
      </EquivalentAddin>
    </EquivalentAddins>
  3. Build and start the addin in Excel for Windows.
  4. Set any cell's value to =ADD(1, 2) (note that CONTOSO prefix is omitted because of XLL compatibility in place).
  5. Keep the cursor on the cell and click on Insert Function button.
grangeryy commented 3 years ago

@sshukurov Sorry for the issue. We just did the initial investigation and seems it is a feature missed in XLL compatibility mode for custom functions. I've created a backlog to track: FEATURE 5343323