Hi guys. I'm quite new at VBA and seem to have problems at every little step of the way.
I'm currently trying to make a code that can automatically import a number of csv files into specified sheets in one workbook. I basically just found a youtube video and copied it, but I can't make it work. That is to say that it actually has worked a few times in steps of the process, but when I tried it again it failed for some reason...
Right now the code is set up to import eight csv files into eight different sheets of the same workbook.
Filenames of the csv files and the destination sheets are defined in a separat sheet called "forudsætninger" (I'm Danish...)
The code is built in two loops because the names of the csv files are in two groups with two different prefixes + year and so far I have not found a more elegant way to make this in one loop...
The code looks as follows:
![]()
Please Login or Register to view this content.
I hope some VBA wizard out there can help me
Best regards from Denmark.
Bookmarks