WorksheetCollection.RegisterAddInFunction

RegisterAddInFunction(string, string, bool)

Adds addin function into the workbook

public int RegisterAddInFunction(string addInFile, string functionName, bool lib)
ParameterTypeDescription
addInFileStringthe file contains the addin functions
functionNameStringthe addin function name
libBooleanwhether the given addin file is in the directory or sub-directory of Workbook Add-In library. This flag takes effect and makes difference when given addInFile is of relative path: true denotes the path is relative to Add-In library and false denotes the path is relative to this Workbook.

Return Value

ID of the data which contains given addin function

See Also


RegisterAddInFunction(int, string)

Adds addin function into the workbook

public string RegisterAddInFunction(int id, string functionName)
ParameterTypeDescription
idInt32ID of the data which contains addin functions, can be got by the first call of RegisterAddInFunction for the same addin file.
functionNameStringthe addin function name

Return Value

URL of the addin file which contains addin functions

See Also