- Initially I have 1 function:
CusFun
in anAdd-in1
- I copy all code in
Add-in1
into module in Excel file, save file1.xlsm
- I open
1.xlsm
to work, now I have 2 functions CusFun - I changed the name (and only the name) of the functions in macro in module1 in
1.xlsm
asCusFun_Port
- Now I have 2 UDF:
CusFun
andCusFun_Port
when I work with1.xlsm
But CusFun_Port
(all of them) always return blank while CusFun
work normally.
Why use macro-enabled file instead of add-in? Because I need to send the file to many users back and forth. I initially thought only I use them, using add-in save me the trouble of clicking "Enable content"
. With add-in, every computer use it must install it. And when the file is sent to another computer, all the custom functions in the file must be re-targeted to that computer's add-in location. My users are not proficient in any of those tasks. And those tasks takes far more time than clicking "Enable content"
.
What can I do to make sure that both functions in add-in and file-specific macro work?