REGISTER (Form 2)

Called from a macro sheet or DLL. This function can only be used on an XLL containing an xlAutoOpen procedure. This function registers the xlAutoOpen function, calls it, and then unregisters it.

Returns the name of the DLL or code resource (xltypeStr).

Syntax

From a macro sheet:

REGISTER(module_text)

From a DLL:

Excel4(xlfRegister, LPXLOPER pxRes, 1, LPXLOPER pxModuleText);

module_text (xltypeStr)

The name of the DLL containing the function.

Remarks

This function is to an XLL what OPEN is to a worksheet. A Macro Record of a File Open operation on an XLL will show that REGISTER(module_text) is recorded. If OPEN is performed on an XLL, the open function registers xlAutoOpen but does not run it. If an action similar to Open is needed for an XLL, use this form of REGISTER instead.