Batch Convert TXT to XLS ?
#1
Moderator
Thread Starter
iTrader: (5)
Join Date: Nov 2001
Location: Not all those who wander are lost
Posts: 17,863
Received 0 Likes
on
0 Posts
Batch Convert TXT to XLS ?
Anyone got a free program/script/macro to batch convert a folder of delimited text files to Excel ? They are all space delimited files with the text qualified using quotes. Too much of a pain to do hundreds of them manually
Help ! Thanks.
Help ! Thanks.
#3
Moderator
Thread Starter
iTrader: (5)
Join Date: Nov 2001
Location: Not all those who wander are lost
Posts: 17,863
Received 0 Likes
on
0 Posts
Originally Posted by bioforger
Save the txt files as csv instead? Then u can open them up straight away in Excel without having to use the wizard.
I managed it in the end using a similar method though. Used good old TextPad to replace all instances of " " in all files with a comma, then removed and spare quotes, renamed the extensions in DOS and jobs a good un Just means I have to save them all as xls files now, but at least it saves on the text import wizard palaver.
#5
Moderator
Thread Starter
iTrader: (5)
Join Date: Nov 2001
Location: Not all those who wander are lost
Posts: 17,863
Received 0 Likes
on
0 Posts
Thanks anyway You know what is like, you come across a problem, post it up on SN and no sooner have you pressed 'Submit New Thread' it comes to you like a flash
#6
Scooby Regular
Join Date: Sep 2001
Location: A powerslide near you
Posts: 10,261
Likes: 0
Received 0 Likes
on
0 Posts
Originally Posted by DJ Dunk
Won't work as they are not comma delimited, but space delimited, it just throws them all into one column. I inherited the files unfortunately, they're not of my making.
If you've already got it in excel in one column, you can still do the same thing. Use the menu: Data>Text to columns. They are one and the same thing as the text import wizard really.
And it DOES work as I've just tested it.
#7
Moderator
Thread Starter
iTrader: (5)
Join Date: Nov 2001
Location: Not all those who wander are lost
Posts: 17,863
Received 0 Likes
on
0 Posts
Of course, but the problem was that I don't fancy doing that 119 times There are lots of files so using the text import wizard is a pain. MS haven't updated the crappy wizard since I started with Excel 4 It does the job, but needs batch processing.
Thread
Thread Starter
Forum
Replies
Last Post
Mattybr5@MB Developments
Full Cars Breaking For Spares
28
28 December 2015 11:07 PM
Mattybr5@MB Developments
Full Cars Breaking For Spares
12
18 November 2015 07:03 AM