A
Alex
I am using Excel 2002 (SR-2), but the problem occurs in 97 as well.
I have created an Add-in (xla file) that contains numerous functions.
Some of these functions are used directly by a number of workbooks to
insert a value in a cell. For example, Cell A1 has the following
formula '=getProduct()', where the getProduct() is a function in my
add-in.
My problem arises from the fact that my add-in and workbooks are
distributed within the company and our clients. Why is it a problem,
well, unless the add-in is in the same directory as the workbooks, or
located in the same directory on every PC it is on, the above mentioned
formula causes a dialog with the following error to occur:
This workbook contains links to other data sources.
The dialog gives you options, but the I don't want the clients to see
it. Now, I can stop the dialog from being displayed, but the cells
that have '=getProduct()' in them don't function correctly.
I do have a workaround for the problem ... in the ActivateWorkbook
method of the workbook, I have written code to determine the full path
to my add-in, and to change the links to use this path. However, it
just seems to be overkill for my problem.
Does anybody have any ideas about what else I could do ...
Many Thanks
I have created an Add-in (xla file) that contains numerous functions.
Some of these functions are used directly by a number of workbooks to
insert a value in a cell. For example, Cell A1 has the following
formula '=getProduct()', where the getProduct() is a function in my
add-in.
My problem arises from the fact that my add-in and workbooks are
distributed within the company and our clients. Why is it a problem,
well, unless the add-in is in the same directory as the workbooks, or
located in the same directory on every PC it is on, the above mentioned
formula causes a dialog with the following error to occur:
This workbook contains links to other data sources.
The dialog gives you options, but the I don't want the clients to see
it. Now, I can stop the dialog from being displayed, but the cells
that have '=getProduct()' in them don't function correctly.
I do have a workaround for the problem ... in the ActivateWorkbook
method of the workbook, I have written code to determine the full path
to my add-in, and to change the links to use this path. However, it
just seems to be overkill for my problem.
Does anybody have any ideas about what else I could do ...
Many Thanks
