Hi,
I need to change the source for a pivot table based on the value in a cell. I have a worksheet named 'Summary' with a cell (A1) that has a dropdown containing the choices of Option1 and Option2 which refer to worksheets named 'Option1' and 'Option2' (this changes dynamically and there may be more than two options). Each Option worksheet has a table with exactly the same range (C56:L251) and I want the pivot table on the Summary worksheet to update depending on whether Option1 or Option2 is chosen as the source in cell A1.
I have tried unsuccessfully using a named range
Any and all help gratefully received.
Excel 2007
I need to change the source for a pivot table based on the value in a cell. I have a worksheet named 'Summary' with a cell (A1) that has a dropdown containing the choices of Option1 and Option2 which refer to worksheets named 'Option1' and 'Option2' (this changes dynamically and there may be more than two options). Each Option worksheet has a table with exactly the same range (C56:L251) and I want the pivot table on the Summary worksheet to update depending on whether Option1 or Option2 is chosen as the source in cell A1.
I have tried unsuccessfully using a named range
Code:
=INDIRECT("'"&'Summary'!A1&"'!C56:C251")
Any and all help gratefully received.
Excel 2007