xlfRegister (Form 2)

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Can be called from a DLL or XLL command that has itself been called by Microsoft Office Excel. This is equivalent to calling REGISTER from an Excel XLM macro sheet.

The xlfRegister function can be called in two forms:

  • Form 1: Registers an individual command or function.

  • 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.

See Also

Concepts

Essential and Useful C API XLM Functions