RegisterXLL Method

Microsoft Excel Visual Basic

RegisterXLL Method

       

Loads an XLL code resource and automatically registers the functions and commands contained in the resource.

expression.RegisterXLL(Filename)

expression   Required. An expression that returns an Application object.

Filename   Required String. Specifies the name of the XLL to be loaded.

Remarks

This method returns True if the code resource is successfully loaded; otherwise, the method returns False.

Example

This example loads an XLL file and registers the functions and commands in the file.

Application.RegisterXLL "XLMAPI.XLL"