Buck Beasom
asked on
Automating Excel Text File Import from VBA
I have been getting a bunch of data files in .csv format and using Excel to eliminate bad rows and scrub bad cells prior to import. Now I am getting them as .txt files and when I use Excel to open them I lose leading zeroes that I need.
I'm trying to adapt this code from an Excel macro into VBA in Access, but I'm using late binding and Access is blowing up on the code.
Any suggestions on how to "import" in Excel using VBA code would be appreciated.
Thanks.
I'm trying to adapt this code from an Excel macro into VBA in Access, but I'm using late binding and Access is blowing up on the code.
Any suggestions on how to "import" in Excel using VBA code would be appreciated.
Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
The 2 suggestions combined to provide a good solution.
Thank you.
Thank you.
1. Rename (copy) file according to your linked file name (constant)
2. Run import queries
3. Delete imported csv file