Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Open two text file in Excel

Hi,

How could I open or merge two text file in excel, I am
trying to create a macro that would join my two text in
excel. Something like this:

File1 Contains my header:
Name
Company Name
Address
City

File2 Contains my data:
Joe Peter,ABC Company, 123 1st Street, Unicity
John Does, MyCompany, 345 22nd Street, City
..
..
.. and soon.

I want to put Name on top of Joe Peter, Company Name on
top of ABC Company, and soos

How could I do this?

Thanks for your help.
Eric



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Open two text file in Excel

Open the first, select the header data, do copy, then do paste special
transpose onto a master sheet.

opne the second file, copy the data and paste below the transposed header on
the master sheet.

Turn on the macro recorder, then do it manually. This will give you the
basic code you need - you can then generalize it.

--

Regards,
Tom Ogilvy

"Eric" wrote in message
...
Hi,

How could I open or merge two text file in excel, I am
trying to create a macro that would join my two text in
excel. Something like this:

File1 Contains my header:
Name
Company Name
Address
City

File2 Contains my data:
Joe Peter,ABC Company, 123 1st Street, Unicity
John Does, MyCompany, 345 22nd Street, City
.
.
. and soon.

I want to put Name on top of Joe Peter, Company Name on
top of ABC Company, and soos

How could I do this?

Thanks for your help.
Eric





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 open file as text [email protected] New Users to Excel 1 December 12th 09 01:34 AM
How to open text file with Excel 2007 Rebeca Excel Discussion (Misc queries) 1 November 23rd 09 09:55 PM
open text file with excel George Applegate[_2_] Excel Discussion (Misc queries) 3 April 22nd 08 12:43 PM
open text file in excel George Applegate[_2_] Excel Worksheet Functions 2 April 22nd 08 04:46 AM
Open delimited text file to excel without changing data in that file zohanc Excel Programming 1 October 3rd 03 01:06 AM


All times are GMT +1. The time now is 12:04 AM.

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

About Us

"It's about Microsoft Excel"