I'm in the process of "translating" a Google Sheets add-on to an Excel add-in. I have trouble finding if and how custom functions would be programmatically created using JavaScript in an Excel add-in (which btw is really simple for Google Sheets).
Is this possible? If so, could you provide a basic example?