Macro that keeps Formula links Updated

kluitna

Board Regular
Joined
Mar 10, 2002
Messages
75
I need help with this macro:
Sub Lookup_file_locate()
Dim FileName As String
Path = Worksheets("Item List").Cells(1, 1)
ChDir Path
Worksheets("Estimate (1)").Cells(10, 3).FormulaR1C1 = "= LOOKUP(R9C3,'Item List.xls'!C1,'Item List.xls'!C2)"
Worksheets("Estimate (1)").Cells(14, 3).FormulaR1C1 = "= LOOKUP(R9C3,'Item List.xls'!C1,'Item List.xls'!C3)"
Worksheets("Estimate (1)").Cells(16, 3).FormulaR1C1 = "= LOOKUP(R9C3,'Item List.xls'!C1,'Item List.xls'!C4)"
End Sub

I created it to up date a location of a look up table when the destination file or the Table is moved. Have it looking at a cell in a sheet in the workbook for the new path but my formulas don't seem to want to recognize it.

Any help would be much appreciated
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).

Forum statistics

Threads
1,214,945
Messages
6,122,393
Members
449,081
Latest member
JAMES KECULAH

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