Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
SpaceMax
 
Posts: n/a
Default Merging text files with excel

Hello All.

How can I merge several text files with the same format into one Excel sheet
in one go ?
I am importing them singly but it would be much better to merge them
together before opening.

Many thanks for any help !
  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

Maybe you can use some old DOS commands.

Shell to a command prompt and issue an old DOS command to concatenate the Text
files.

Windows start button|Run
(or flying windows r as a shortcut!)
win98: Command
WinXP/NT: CMD

Go to that folder:

C:
(to change to that drive)

cd\myfolder1\myfolder2\myfolder3
to change to that folder

copy *.txt All.Files
Ren All.Files All.Txt

(if you used All.Txt, then the copy command would try to include the total file
into itself--and you'd get an error. So we copy all the .txt files to .files
and
then just rename the .files to .txt)

Exit to quit the shell.

Then import all.txt into excel.

SpaceMax wrote:

Hello All.

How can I merge several text files with the same format into one Excel sheet
in one go ?
I am importing them singly but it would be much better to merge them
together before opening.

Many thanks for any help !


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
How do I import several text files into excel or access ? acechef11 Excel Discussion (Misc queries) 2 June 9th 05 08:12 PM
setting text qualifier in Excel Lyle Excel Discussion (Misc queries) 1 June 8th 05 06:28 PM
sharing/using/saving Excel 2002 files in Excel 2003 maze2009 Excel Discussion (Misc queries) 0 January 20th 05 07:27 PM
multiple text files URGENT tasha Excel Discussion (Misc queries) 1 December 19th 04 05:44 PM


All times are GMT +1. The time now is 02:07 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"