Using VBA to update data links from 2 excel files

jtl00

New Member
Joined
Oct 15, 2013
Messages
3
Hi,

I am new to VBA so please bear with me!!

I have 3 excel files. File1 contains the raw data. File2 contains links to file1 to put it into the required format. File3 contains links to File2 to present the data. Due to a number of reasons this is the file structure that we need to maintain.

The problem that I have is when I access File3 I need to click a command button that updates the data links between File1 & 2, and then File2 & 3. I don't want to manaully open File1 & 2 to update the links.

Any help or suggestions on what the VBA code is will be greatly appreciated.

Many thanks in advance.
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

Forum statistics

Threads
1,223,246
Messages
6,170,996
Members
452,373
Latest member
TimReeks

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