How to use data from a variable file?

brainfreeze2the

New Member
Joined
Apr 26, 2016
Messages
3
Is there a way to use data from a file that has been updated with a different name on the server?

Location stays the same, but the name changes somehow.
for example: location: G:\...\Quality\data\brackets_26-04-2016.xlsx
after _ :date will be changed

So there is a possibility there are multiple files in the map.

But i want to use the last modified file.
Every time the layout stays the same.

I would like to link data from that file (variable) to my new file.

And if i can figure that out.
Is that even possible to link excel files using sharepoint?
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Welcome to the Board!

If the file name always follows the same format and has today's date in it, it is predictable and we can dynamically figure out the file name.
I assume that you will be doing this in a macro, so to build the file name of the file to open will look something like:
Code:
    myFileName = "G:\...\Quality\data\brackets_" & Format(Date, "dd-mm-yyyy") & ".xlsx"
Can't really answer your question about Sharepoint. I don't use it.
 
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