Hi everyone,
I need to copy files from one folder to another using VBA.
I have a folder with a lot of csv files with different names. I want to copy files when part of the filename is the same as value in cell D2. It will be up to 4 files that contain that value in D2. I want to create a new subfolder with the same name as in cell D2 and copy matching files to it.
Let’s say all csv files are in C:\test\ and I want to copy them to C:\test\”D2 value”\
Is there anyone that know if it’s possible or how to do it?
Using Excel 2010.
I need to copy files from one folder to another using VBA.
I have a folder with a lot of csv files with different names. I want to copy files when part of the filename is the same as value in cell D2. It will be up to 4 files that contain that value in D2. I want to create a new subfolder with the same name as in cell D2 and copy matching files to it.
Let’s say all csv files are in C:\test\ and I want to copy them to C:\test\”D2 value”\
Is there anyone that know if it’s possible or how to do it?
Using Excel 2010.