GregoryWest
Registered User.
- Local time
- Today, 17:12
- Joined
- Apr 13, 2014
- Messages
- 161
I have a wide variable length text file. The record width is between 150 and 450 characters. To add to the complication the file as multiple record types in each file, in no particular order.
What I would like to do is write a piece of VBA code that will suck all the data into an existing table so the new table can be further massaged into the component parts.
The table the data is going into is extremely simple:
Field1 - Text - 255 char
Field2 - Text - 255 char
There has to be a simple way to do something like this. I have been playing around with Macro and the import function, my only problem is the imput file name changes often. Everything else stays the same.
What I would like to do is write a piece of VBA code that will suck all the data into an existing table so the new table can be further massaged into the component parts.
The table the data is going into is extremely simple:
Field1 - Text - 255 char
Field2 - Text - 255 char
There has to be a simple way to do something like this. I have been playing around with Macro and the import function, my only problem is the imput file name changes often. Everything else stays the same.