IBuiltInFunctions.ExecuteCustomFunction (String, Object(,), Object(,)) Method
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
stringThe 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 |
---|---|
An error occurred. |
This is a low-level version of the method, which doesn't read nor does it write to any worksheet.