Setting an using a variable to a closed excel workbook

tweeterisu

New Member
Joined
Jun 19, 2014
Messages
3
First time poster here! I've searched and looked but cannot find a way to get this to work.

I need to reference a value from a closed excel file without using the morefunc addin or vba.

One way I can make it work but it's not ideal is hardcoding the string path for every cell

Example:

='http://url address/[filename.xlsx]Sheet1'!M7


Ultimatley, I would like to put a variable for url and for filename.

Any help would be greatley appreciated.

Thanks,
Matt
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
So I got it to display within my file



="'"&(url&filename)&"'!cell"

it gives me the same structure as one that works as mentioned before but it does not return the value.

Am I missing something?






First time poster here! I've searched and looked but cannot find a way to get this to work.

I need to reference a value from a closed excel file without using the morefunc addin or vba.

One way I can make it work but it's not ideal is hardcoding the string path for every cell

Example:

='http://url address/[filename.xlsx]Sheet1'!M7


Ultimatley, I would like to put a variable for url and for filename.

Any help would be greatley appreciated.

Thanks,
Matt
 
Upvote 0

Forum statistics

Threads
1,223,234
Messages
6,170,891
Members
452,366
Latest member
TePunaBloke

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