Prevent Graph linking to old workbook after copying

SimonVOwen

New Member
Joined
Nov 15, 2017
Messages
26
Hello All,

I am running a macro that grabs data(array of data and a graph of this data) from a workbook and enters into another workbook.
However the graph keeps the old series links (this data is changed daily so changes the graphs in new wokbooks) is there an easy way to make it so the seris still relate to the data I copied it across with.

Regards,
Simon
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
I prefer to do in this way:

  • Keep 1 macro file with data and the graph as a form.
  • Macro will copy data from other workbook to this workbook
  • Macro also save as file to new workbook

So the graph in new workbook only link to that data on each day.

Otherwise, you can use VBA to get the filename of destination file (new data & graph) and change the properties of graph to link to correct file, but I think more complicate.
 
Upvote 0

Forum statistics

Threads
1,214,899
Messages
6,122,155
Members
449,068
Latest member
shiz11713

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