Invokes the controlled Excel instance and evaluates the named add-in function, using the specified parameter list of arguments.

Namespace:  XllPlus.ComWrappers.Runtime
Assembly:  XllPlus.ComWrappers.Runtime (in XllPlus.ComWrappers.Runtime.dll) Version: 7.0.9.1411 (7.0.9.1411)

Syntax

C#
Object CallExcel(
	string fnName,
	params Object[] arguments
)
Visual Basic (Declaration)
Function CallExcel ( _
	fnName As String, _
	ParamArray arguments As Object() _
) As Object
Visual C++
Object^ CallExcel(
	String^ fnName, 
	... array<Object^>^ arguments
)

Parameters

fnName
Type: System..::.String
The name of the function, as visible in Excel.
arguments
Type: array< System..::.Object >[]()[]
The arguments to the add-in function.

Return Value

The variant type that was returned by Excel.

Exceptions

ExceptionCondition
XllPlus.ComWrappers.Runtime..::.XllWrapperExceptionThrown if Excel is unable to call the function, or if Excel rejects the inputs.

See Also