Hi VBA Programmer, I have found this code on the book but it seems that this code is not working
the way it should be..
error vba.JPG
here's the code
Please Login or Register to view this content.
Hi VBA Programmer, I have found this code on the book but it seems that this code is not working
the way it should be..
error vba.JPG
here's the code
Please Login or Register to view this content.
Last edited by Cheezee; 12-09-2015 at 07:02 PM. Reason: Change title
Hi Cheezee,
Your code worked for me, although it is NOT guaranteed to work, because Sub ProcessFiles() is fed a file name only. It tries to open the text file using the default path, and sometimes it may be successful.
See the following small changes made to Sub BatchProcess() in red:
Unrelated to your question, the above routine could be written with less code as follows:Please Login or Register to view this content.
I hope this helps.Please Login or Register to view this content.
Lewis
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks