IBuiltInFunctions.ExecuteCustomFunction (String, Object(,), Object(,)) Method

Executes the "CallCustomFunction" method from the "Custom_Functions.dll" file with the specified custom function.
Function ExecuteCustomFunction( _ 
ByVal functionName As String, _ 
ByVal sourceRange As Object(,), _ 
ByVal targetRange As Object(,) _ 
) As String
This language is not supported or no code example is available.
string ExecuteCustomFunction( 
string functionName
object[,] sourceRange
object[,] targetRange 
)
This language is not supported or no code example is available.

Parameters

functionName
string

The name of the function to be executed. Case insensitive.

sourceRange
object[,]

A 2-dimensional array of objects which represents the content of possible data range passed to the function. Read only (values are string or double).

targetRange
object[,]

A 2-dimensional array of objects which represents the content of the data range you want to return (values are string or double).

Return Value

string

The result of the function call. An empty string if no problem was encountered. The "[CANCELED]", if the action was canceled by the user. Otherwise the error message. The return value handles only the errors returned from the functionName, all other errors are reported with normal exceptions.

Exception type Condition

Exception

An error occurred.

Remarks
 
This method never displays any error messages to the user. Instead, the error message is returned or an exception is thrown.

This is a low-level version of the method, which doesn't read nor does it write to any worksheet.

Version
 
Available since QDV 7.23.1126.

.NET Framework

Supported in: 4.8, 4.7, 4.6, 4.5.2

In this article

Definition