Copy/Paste Chart with Specific Data Range
Solved
seblg29
-
ccm81 Posted messages 11033 Status Member -
ccm81 Posted messages 11033 Status Member -
Hello,
I created a chart in Excel (columns C to F),
The data range is located from column C to F.
I need to reproduce this chart X times; however, only the data range should be modified.
When I copy columns C to F (including the chart) and paste them into columns G to J, the chart is duplicated, but the selected data range remains columns C to F, whereas I would like it to select the data located in columns G to J.
I couldn't find a way in Excel to achieve this...
However, under VBA, after a few attempts, it seems quite complex...
Do you have a solution to my problem?
Thank you in advance for your response,
Best regards,
Sébastien
I created a chart in Excel (columns C to F),
The data range is located from column C to F.
I need to reproduce this chart X times; however, only the data range should be modified.
When I copy columns C to F (including the chart) and paste them into columns G to J, the chart is duplicated, but the selected data range remains columns C to F, whereas I would like it to select the data located in columns G to J.
I couldn't find a way in Excel to achieve this...
However, under VBA, after a few attempts, it seems quite complex...
Do you have a solution to my problem?
Thank you in advance for your response,
Best regards,
Sébastien
4 answers
-
Hello,
A simple solution outside of VBA:
Copy/paste the chart alone, you'll get a chart 2.
Select chart 2 >>> the common data area will be highlighted in blue.
Grab this frame with the mouse and move it to the desired data zone 2.
A bit of practice or skill is needed, after that it will go smoothly! -
Hello tontong, it's been a while!
For seblg29
If you're into VBA, a little example
https://www.cjoint.com/c/IDin47s1ptB
Best regards -
I have to make this graph a hundred times
If you had said it earlier!
To copy all the graphs at once
https://www.cjoint.com/c/IDjhVtvghsB
Best regards -
You're welcome
If it's done, can you mark the topic as resolved (in the top right, the gear icon)
Have a nice afternoon