Hey,
I am trying to create a small macro that will loop through the text files in the root of a folder (no child folders), and basically just grab the number of rows in each file.. The text files do have a header, but that shouldn't be an issue... I am receiving the error " Data Soruce name not found or No default driver specified"....when connecting to the text file. My code does have the driver specifiedMicrosoft Text driver). have run into this before using VB 6.0, but was able to resolve that issue...I forget what i did.....See below for my code:
The bold section is exactly where it is crashing...
I haven't coded far enough to open an excel file and copy the results of how many rows are in each file. Above is just a snippet of my code, as I already have the loop feature working to cycle through each file, just can't figure out this problem...Is it maybe a limitation with excel?
If anyone can point me in right dirrection that would be great. Thanks for your help in advance...
oobern
Bookmarks