CALL (Form 1)

Called from a macro sheet or worksheet. This function calls a registered function in a DLL or a code resource. The function must already have been registered using REGISTER or REGISTER.ID.

Returns the return value from the function that was called.

Syntax

CALL(register_id,argument1, ...)

register_id (xltypeNum)

The register ID of the function. You can get this using REGISTER.

argument1, ...

Zero or more arguments to the function that is being called. These arguments are optional.

Remarks

If the function was originally registered, and a function name was specified in the function_text argument, this function can alternately be called as follows:

=function_text(argument1, ...)

Example

The following example registers the CalcCircum function in CIRCUM.DLL, and then calls the function using the defined name for cell B1.

Related Functions

CALL (Form 2), REGISTER, REGISTER.ID, UNREGISTER