XLL+ Class Library

XllDriver.InstallExcelEmulator

Installs an Excel emulator

[VB]
Public Function InstallExcelEmulator( _
   ByVal emulator As IExcelEmulator, _
   ByVal topOfList As Boolean, _
   ByVal functionIDs As Long() _
) As Long 

Parameters

emulator

An object that supports the IExcelEmulator interface.

topOfList

TRUE to insert the emulator at the top of the list of emulators. FALSE to install it a the bottom of the list. A call is passed to each of the installed emulators in turn, starting at the top of the list, until one of the emulators handles it.

functionIDs

An array of function IDs. If present, the emulator will only be invoked for these functions. If omitted or empty, then the emulator will be called for all functions.

Return value

Returns a cookie that can be used with UninstallExcelEmulator to uninstall the emulator.

Example

You can find an example of using InstallExcelEmulator in the discussion of Excel Emulators.

Requirements

Library: pslxld01.dll

See Also

XllDriver Class | XllDriver Methods | IExcelEmulator interface | UninstallExcelEmulator