How to build the add-in to realize the Excel function in Solidworks

as topic says, I want to built some add-ins to use the Excelfunction like sum(), replace() and so on.

Who can help me out or where to find any relevant sources ?SolidworksApi macros