xlfRegister (Form 2)
Applies to: Excel 2013 | Office 2013 | Visual Studio
Can be called from a DLL or XLL command that has itself been called by Microsoft Excel. This is equivalent to calling REGISTER from an Excel XLM macro sheet.
The xlfRegister function can be called in two forms:
xlfRegister (Form 1): Registers an individual command or function.
xlfRegister (Form 2): Loads and activates an XLL.
Called in Form 2, this function can only be used to load and activate an XLL containing an xlAutoOpen procedure.
Excel12(xlfRegister, LPXLOPER12 pxRes, 1, LPXLOPER12 pxModuleText);
Parameters
pxModuleText (xltypeStr)
The name of the DLL to be loaded and activated.
Property value/Return value
If successful, this returns the name of the DLL (xltypeStr). Otherwise it returns a #VALUE! error.