J
John Gregory
Two worksheets sheet are used to feed a chart on a third sheet. One accepts
the results of a query that's triggered by a macro from a button on an
outline (a forth sheet). The second sheet is a worksheet that simply takes
data from the query sheet and permits it to be manipulated. The data is
transfer by simply "=" in a cell then a link to the respective cell on the
query sheet.
When I run the macro, the cells on the worksheet report "#REF!". Anything
linked to that updated query sheet reports "#REF!".
What am I doing wrong and how do I prevent this? I could solve the problem
by editing the macro to rebuild the links each time but I don't understand
why the links are being broke. I am clearing the query sheet by selecting
the top left cell and clicking DELETE but I can't see how that could be
returning the error. The new data ends up in the same position that the
worksheet points to and the query sheet name hasn't changed.
the results of a query that's triggered by a macro from a button on an
outline (a forth sheet). The second sheet is a worksheet that simply takes
data from the query sheet and permits it to be manipulated. The data is
transfer by simply "=" in a cell then a link to the respective cell on the
query sheet.
When I run the macro, the cells on the worksheet report "#REF!". Anything
linked to that updated query sheet reports "#REF!".
What am I doing wrong and how do I prevent this? I could solve the problem
by editing the macro to rebuild the links each time but I don't understand
why the links are being broke. I am clearing the query sheet by selecting
the top left cell and clicking DELETE but I can't see how that could be
returning the error. The new data ends up in the same position that the
worksheet points to and the query sheet name hasn't changed.