Absolute paths in formulae for linked workbooks

welshgasman

Well-known Member
Joined
May 25, 2013
Messages
1,402
Office Version
  1. 2019
  2. 2007
Platform
  1. Windows
Hi all,
I have created an Excel workbook that is a summary of other Excel files.

In each of the data files there is a summary sheet and I have referred to each summary sheet cell with the formula
='\\SRVPC\EFS-Shared\JAGB\JAG\[2017 GMP Stats.xlsx]SIPP'!E2

The above is in cell E2 of the summary workbook and the formula is repeated. I have a 2016 workbook and now starting the 2018 workbook.

All files are in the folder ='\\SRVPC\EFS-Shared\JAGB\JAG\ and when I open the summary file in that folder, all works as it should.

However to stop the managers altering the workbook, I copy the workbook to their temp folder on their PC and then open it via a batch file. I was doing this with the data file for last year, but now we are on the third year I decided to create this summary sheet, as all they are interested in is the summary sheet in each data file.

When the file is opened on a user's pc instead of the correct path showing in the formula, the path above is replaced by the temp path C:\Temp and of course the files are not located there, so I get the broken links message.

How can I stop this happening and persuade Excel to use the original path.? That is why I used the UNC path and not the mapped drive as they could be different for each user.
From this link, it appears they think absolute paths are a no no, but in this situation this is what I need?

TIA
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Always the way. You post and then you find something else to try.

I have copied the file to the temp location and changed the source. then I changed the mapped path for the UNC path and saved the file and copied back to original location.
Now the batch file copies it and the links stay as they are for now, but I have seen mention that if I have to edit the file I will lose the links and have to repeat. :(

Will have to see how it goes.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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