Update charts data reference after copying sheet and renaming to a variable name

twisturwhig

New Member
Joined
Oct 22, 2018
Messages
2
I created a "template" worksheet, in which users create a copy of said template and rename to a variable name. On the template sheet, there is data and 2 charts that reference the same sheet name as the charts sitting on ( data is not on another sheet). After creating a copy of the sheet, the 2 charts on the new sheet continue to reference the "template" work sheet and the cells contained there. I need a way to update the references for the charts to pull data on the same sheet the charts live despite not knowing the name ahead of time. The charts' sheet references would always be = activesheet.name if this helps. Can anyone help?:confused:
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)

Forum statistics

Threads
1,213,538
Messages
6,114,218
Members
448,554
Latest member
Gleisner2

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top