register_add_in_function method

register_add_in_function

Adds addin function into the workbook

Returns

URL of the addin file which contains addin functions

def register_add_in_function(self, id, function_name):
    ...
ParameterTypeDescription
idintID of the data which contains addin functions,
can be got by the first call of WorksheetCollection.register_add_in_function for the same addin file.
function_namestrthe addin function name

register_add_in_function

Adds addin function into the workbook

Returns

ID of the data which contains given addin function

def register_add_in_function(self, add_in_file, function_name, lib):
    ...
ParameterTypeDescription
add_in_filestrthe file contains the addin functions
function_namestrthe addin function name
libboolwhether 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.

See Also