VBA - Open External Files

daveburton

New Member
Joined
Mar 6, 2014
Messages
2
Hopefully this isn't too confusing...

So I'm trying to open a outside xls file (File 2) from within a workbook (File 1), copy the contents of File 2 and paste it back into File 1. The only snag is the File 2 is automatiicaly FTP'd to me daily in a custom folder. Everyday a new folder is created, the name of which is the date (ex. 03062014), and a fresh File 2 is dropped. I can write the code if the location of File 2 was constant but in this case every day the path for File 2 changes to a new folder. Anyone know how to work around this?


Thanks, all!
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
If the new folder is in the same directory, you can use a text file to keep folder names and check against them for a new folder.
 
Upvote 0

Forum statistics

Threads
1,226,729
Messages
6,192,696
Members
453,747
Latest member
tylerhyatt04

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