Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi folks,
I've a small requirement to loop through the files in a sub folder and generate a output file for each folder.
As shown above, I need to load all the files under Australia folder , generate a concatenated table and store it into a csv. And it should loop through India, UK, USA folders......
Pls can you suggest a way to achieve this?
Many Thanks in Advance!
Multiple sheets, but will be reading only one.
If possible, please enable log file (Document Properties / General / Generate logfile) and post it here too
Hi Clever,
It works. But it throws an error for the folders which don't contain any file. Is there a way we can handler this?
Many thanks for your help.
It´s pretty simple
Hi Clever
Sorry, It didn't work. It's still unable to store the tmp table for the folder which don't have any files.
I tried to set ErrorMode=0 and i works, but don't think this is the best way to achieve this.
Thank you!
Would you mind posting the log file here?
Let me check
Had some issues trying to run this solution because line 1.
It did not seem clear to me. I think it is a bit better to understand
1.for Each dir in DirList('yourpathgoeshere\*')