This may have been adressed before, but if so, I can't find it. The problem is this:
I've written an add-in which several of my colleagues use. I store my copy in the usual folder for addins on my C:\ drive. They store theirs the same way.
If I create a spreadsheet, which uses some of the functions from the add-in, and store it on a shared drive (or, for that matter give them a copy on a floppy and they copy it to their own drives), when they open it, it has saved the references to the add-in functions with the whole path\addin_name\function_name reference. So, although they have the add-in, the function in the cell is trying to use a function from an add-in on MY drive.
It is fairly easy to solve the problem, for the more excel-literate users. All they have to do is search and replace with "" for my path to the addin. That then leaves just the function name, and it gets called for their installed addin. I've even included some code which does that in the open event on some sheets, so they don't have to.
BUT - it still comes up with an anoying initial message, about updating links to another workbook (the addin) before the workbook open event fires.
Does anyone know how to avoid the whole problem by forcing Excel to save the reference to the add-in function using JUST the function name, avoiding any explicit path ref?
After all, if I use a function from, say the Analysis toolpack, I can give a copy to a colleague and it does not try to refer to the AT on my machione - it just works. How is a user-defined add-in different from the AT?
I've written an add-in which several of my colleagues use. I store my copy in the usual folder for addins on my C:\ drive. They store theirs the same way.
If I create a spreadsheet, which uses some of the functions from the add-in, and store it on a shared drive (or, for that matter give them a copy on a floppy and they copy it to their own drives), when they open it, it has saved the references to the add-in functions with the whole path\addin_name\function_name reference. So, although they have the add-in, the function in the cell is trying to use a function from an add-in on MY drive.
It is fairly easy to solve the problem, for the more excel-literate users. All they have to do is search and replace with "" for my path to the addin. That then leaves just the function name, and it gets called for their installed addin. I've even included some code which does that in the open event on some sheets, so they don't have to.
BUT - it still comes up with an anoying initial message, about updating links to another workbook (the addin) before the workbook open event fires.
Does anyone know how to avoid the whole problem by forcing Excel to save the reference to the add-in function using JUST the function name, avoiding any explicit path ref?
After all, if I use a function from, say the Analysis toolpack, I can give a copy to a colleague and it does not try to refer to the AT on my machione - it just works. How is a user-defined add-in different from the AT?