Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

How are xll functions converted to custom functions?


Asked by Eliseo Schmitt on Nov 30, 2021 FAQ



An add-in's XLL functions are converted to XLL compatible custom functions when a spreadsheet is opened and there is an equivalent add-in available. On the next save, the XLL functions are written to the file in a compatible mode so that they work with both the XLL and Excel add-in custom functions (when on other platforms).
In this manner,
To set the equivalent XLL add-in for your custom functions, specify the FileName of the XLL file. When the user opens a workbook with functions from the XLL file, Excel converts the functions to compatible functions.
Likewise, With Excel 2007 and above, your XLL function can assign a value to an arbitrary cell by running a command-equivalent Excel 4 macro via the ExecuteExcel4Macro () method of the Excel.Application interface.
Furthermore,
From within an XLL command that Excel has called directly or via VBA. From within an XLL worksheet or macro sheet function that Excel has called directly or via VBA. You cannot call the Excel C API in the following scenarios: From an operating system event (for example, from the DllMain function).
Keeping this in consideration,
If you have existing Excel XLL add-ins, you can build equivalent custom function add-ins using the Excel JavaScript API to extend your solution features to other platforms, such as Excel on the web or on a Mac.