File Name Help

kyleboyd

New Member
Joined
Feb 22, 2011
Messages
15
I have two seperate workbooks that I need to link. I would like to be able to link using the sheet names of the first workbook.


Workbook 1, with sheets
Sheet001
Sheet002

Workbook 2, titled Sheet001.xls

So I would like to have in a cell Sheet001 something that links like so:
C:/"SheetName.xls"!A1 etc.

This is important because the individual workbooks are being manipulated, changed and added too, and I would prefer to not have to link every new file manually.

The closest I have found is somehow to use INDIRECT, but I cannot get it to work correctly.

I'm not sure how better to describe it than that. TIA
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
That probably IS a problem, however I haven't gotten there yet because I haven't made much progress. Basically is there any way to link to another workbook without directly linking?

ie

A1
C:/Path/

B1
filename.xls

C1
Sheet 1

E1
!A4

F1
=C:/Path/filename.xls/Sheet 1!A4

or

"A1""B1""C1""D1""E1"

Is that easier?
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,286
Members
452,902
Latest member
Knuddeluff

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