Hey Guys
I'm still new to VBA and I've run into some trouble with a loop I've been writing.
What I basically need it to do is this:
I have a master file from which I run the VBA. Then I have 20 worksheets, which all corresponds in name to 20 workbooks (Excel-files) that are placed in the same folder as the master file.
What I need the VBA code to do, is to open each of the workbooks, copy/paste two distinct areas / ranges from that open workbook to the master file (the copy and paste area is the same), and then close all those other workbooks again.
Fairly simple.
But I simply can't get it to work.
Here is the code so far:
It seems that the issue is generated when trying to open the different files. It's like it doesn't recognize the "\" and instead tries to open an xls file with the name of the folder the files are in + the 1, then 2, then 3, etc.![]()
Please Login or Register to view this content.
If any of you can figure out what the problem is. I would greatly appreciate it!
Thanks in advance.
Bookmarks