Register now or log in to join your professional community.
I think the best way is to insert all the code in VBA module and same the excel file into new macro enabled type.
then you can use the the functions in that module as any other functions in excel.
Thanks