I have been working on this problem for several days almost non-stop.
Is it possible to have a spreadsheet where all the VBA code is contained in an Add-In (.xlam)? The code contains both Functions and Subroutines. The Subroutines are invoked using command buttons on the original spreadsheet (.xlsx or .xlsm).
When I test this setup, the functions work but when I click the command button I receive the standard macro not found or disabled error. Tried Application.Run ("xxx.xlam!subname") but no joy.
Any suggestions? Thanks in advance.
BTW, the reason is to distribute the spreadsheet and have the code in add-in to make it less vulnerable to be able to view and therefore change the code, which would botch everything.
Spreadsheet has 15 tabs, many functions and about 3000 lines of VBA.
Is it possible to have a spreadsheet where all the VBA code is contained in an Add-In (.xlam)? The code contains both Functions and Subroutines. The Subroutines are invoked using command buttons on the original spreadsheet (.xlsx or .xlsm).
When I test this setup, the functions work but when I click the command button I receive the standard macro not found or disabled error. Tried Application.Run ("xxx.xlam!subname") but no joy.
Any suggestions? Thanks in advance.
BTW, the reason is to distribute the spreadsheet and have the code in add-in to make it less vulnerable to be able to view and therefore change the code, which would botch everything.
Spreadsheet has 15 tabs, many functions and about 3000 lines of VBA.