Changing path to active directory

doug.washburn

New Member
Joined
May 18, 2004
Messages
49
Hi,

Similar question to my last one...

I have set up a workbook to link to pages in other workbooks. Problem is, the path in the link is very specific (i.e. C:\monthly reports\April). Each month I create a new folder and copy the master workbbok and the linked workbooks to the new folder so I need the object links in the master book to look in the current folder for it's updates.

Is there a syntax I can change in the object link to tell the master book to look in it's current folder for the linked file?

I tried replacing the syntax from:
=Excel.Sheet.8|'S:\RCS\BU 01\RESP 2380\DEPT 318\SYD Construction\Construction Planning Management\Month End Report 2011\4. April 2011\MASTER TEST\KPIs.xls'!''''
to:
=Excel.Sheet.8|ActiveDocument.Path\KPIs.xls!''''

But that didn't work.
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Are you referring to code or just formulas?

If the latter, then at the beginning of each month, do this:

Make the two old workbooks read-only to avoid an embarassment.

Open both workbooks. Save the KPI workbook to the new folder (the links will follow), then save the other workbook to the new path.
 
Upvote 0
That doesn't seem to work. The object still looks like the file I originally linked to in the first folder. It doesn't seem to be updating to the current folder.
 
Upvote 0
Could you explain the exact steps you took that didn't work?
 
Upvote 0

Forum statistics

Threads
1,224,570
Messages
6,179,610
Members
452,931
Latest member
The Monk

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