TheShredder
New Member
- Joined
- Feb 1, 2018
- Messages
- 3
Hi guys,
I'm currently a newbie to VBA macro scripting. While working I need to find a way to import data from a text file to an excel worksheet, and a way to automatize it for a list of .txt into a list of .xlsx . Found a sweet code here http://www.cpearson.com/excel/ImportBigFiles.aspx but it cannot detect that into the .txt data are delimited: so I'm not able to separate them with the default setting for import.
<code>
Delimited
Delimiters : TAB
Column Data format : General
Where do you want to put the data ? Existing worksheet: =$A$1
</code>
Here's the example of what I get manually and what with the code above.
Manually.
https://imgur.com/a/4C5AD
With the script.
https://imgur.com/a/Tefzs
So, in order to resume, I'm looking mainly to a way to get the text properly formatted and without random characters added (+ or _ ).
After that, I'll try something to automatize the process to a list of .txt into a proper folder.
Every tip or suggestion are well accepted.
Thanks for the attention.
I'm currently a newbie to VBA macro scripting. While working I need to find a way to import data from a text file to an excel worksheet, and a way to automatize it for a list of .txt into a list of .xlsx . Found a sweet code here http://www.cpearson.com/excel/ImportBigFiles.aspx but it cannot detect that into the .txt data are delimited: so I'm not able to separate them with the default setting for import.
<code>
Delimited
Delimiters : TAB
Column Data format : General
Where do you want to put the data ? Existing worksheet: =$A$1
</code>
Here's the example of what I get manually and what with the code above.
Manually.
https://imgur.com/a/4C5AD
With the script.
https://imgur.com/a/Tefzs
So, in order to resume, I'm looking mainly to a way to get the text properly formatted and without random characters added (+ or _ ).
After that, I'll try something to automatize the process to a list of .txt into a proper folder.
Every tip or suggestion are well accepted.
Thanks for the attention.