Conditionally register UDFs

Oct 29, 2013 at 7:45 PM
Is it possible to only register UDFs is certain condition is satisfied. Like the user has enabled a certain feature. (Trying to build a plugin framework for my addin).

Can UDFs be registered/unregistered on runtime?

Regards
/Niels
Coordinator
Oct 29, 2013 at 9:30 PM
Edited Oct 29, 2013 at 9:33 PM
Hi Niels,

You can register UDFs at runtime using the ExcelIntegration.RegisterMethods and ExcelIntegration.RegisterDelegates (in recent check-ins) functions.
They're not much documented - see https://exceldna.codeplex.com/wikipage?title=Dynamic%20delegate%20registration

-Govert