Taking a filepath name from a cell in VBA formula

aaw23

New Member
Joined
Mar 25, 2021
Messages
8
Office Version
  1. 2016
Platform
  1. Windows
Hi, I am attempting to replace the hard typed filepath name in various formulas with the filepath as it appears in a cell.
For example rather than the below formula:
ActiveCell.FormulaR1C1 = _
"='I:\Finance\Reports\2022-2023\02 August 2022\[Consol Report Aug 22.xlsm]Retail'!R158C9"

being able to reference the file path as it is typed into another cell (say in cell C2 of ths sheet being worked in):
1663991242969.png


so that this file path name could be combined with the sheet name and cells in the formula.

Appreciate any assitance
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
I tried to understand your need but from the description, you gave I was not able to. Maybe try again to describe what you are attempting to do.
 
Upvote 0

Forum statistics

Threads
1,214,980
Messages
6,122,563
Members
449,088
Latest member
Motoracer88

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