Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel Fields to Text

Hi All,

This may be a fairly basic question, but I'm just not sure how to do
this:

I have an Excel file with data that needs to be input into a text
file. The text file already has various lines that need to stay in,
and the data from Excel needs to be put into specific places in the
file.

For example, the data from A2 needs to go into the text file
immediately after a phrase, then the data from B2 needs to go after
another phrase, and so on.

Is there an easy way to accomplish this? I keep thinking it's
something like a MailMerge, but I don't know how to accomplish this.

Are there any pointers?

Thanks,
David

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 78
Default Excel Fields to Text

Hi, there is no easy way. You have to write a VBA code snippet, that reads
the text file and writes the contents into another file alongwith the values
read from the excel and finally after all the lines from the first text file
is written into the second text with the data from excel, delete the first
text file and rename the second text to the name of the first text file. I
hope this helps you.

" wrote:

Hi All,

This may be a fairly basic question, but I'm just not sure how to do
this:

I have an Excel file with data that needs to be input into a text
file. The text file already has various lines that need to stay in,
and the data from Excel needs to be put into specific places in the
file.

For example, the data from A2 needs to go into the text file
immediately after a phrase, then the data from B2 needs to go after
another phrase, and so on.

Is there an easy way to accomplish this? I keep thinking it's
something like a MailMerge, but I don't know how to accomplish this.

Are there any pointers?

Thanks,
David


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
how best to handle longish text fields in excel? cass Excel Discussion (Misc queries) 3 March 28th 07 09:20 PM
Excel SHOULD NOT AUTO-CHANGE formated text fields to DATE FIELDS! PSSSD Excel Worksheet Functions 2 August 8th 06 09:31 PM
Make Excel allow numeric fields as text Michael A. Covington Excel Programming 0 June 16th 06 04:03 AM
how to compare text fields in 2 different columns in excel ljt1 Excel Worksheet Functions 2 January 31st 06 11:22 PM
Auto-Enter Text in Excel Fields Christopher in Bellefontaine Excel Discussion (Misc queries) 3 April 25th 05 06:34 PM


All times are GMT +1. The time now is 03:41 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"