Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default How Might I "Mail Merge" Data For Multiple .txt File Output?

Instead of mail merging a list of addresses with a letter, my goal is
to combine a list of data with a text file (actually an .XML script) to
make a number of seperate .txt files, each with one of the data lines
imbedded.

One could concievably do this in a straightforward way in MS Word,
except that Word will let you send output either to a printer, to
email, or to a SINGLE large output file. I want to crank out dozens of
individual text files, one for each member of the input data file.

I am an avid Excel user, but, ahem, a very poor macro programmer.
Could you suggest a macro script that would run this mail-merge-like
function?

  #2   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.excel.misc
external usenet poster
 
Posts: 27,285
Default How Might I "Mail Merge" Data For Multiple .txt File Output?

If you already have a text file, you can use low level file io to read it
in, then loop through your data and write out a similar file, inserting the
appropriate additional line.

http://support.microsoft.com/default...b;en-us;151262
Working with Sequential Access Files

http://www.applecore99.com/gen/gen029.asp

http://web.archive.org/web/200404050...eio/fileio.asp
File Access with Visual Basic® for Applications

http://pubs.logicalexpressions.com/P...cle.asp?ID=622

You can also use the scripting runtime (Textstream object)

http://msdn.microsoft.com/library/de...0800ad34d6.asp


--
Regards,
Tom Ogilvy


wrote in message
oups.com...
Instead of mail merging a list of addresses with a letter, my goal is
to combine a list of data with a text file (actually an .XML script) to
make a number of seperate .txt files, each with one of the data lines
imbedded.

One could concievably do this in a straightforward way in MS Word,
except that Word will let you send output either to a printer, to
email, or to a SINGLE large output file. I want to crank out dozens of
individual text files, one for each member of the input data file.

I am an avid Excel user, but, ahem, a very poor macro programmer.
Could you suggest a macro script that would run this mail-merge-like
function?



  #3   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default How Might I "Mail Merge" Data For Multiple .txt File Output?


Tom, JLGWhiz; thanks so much for your input!

Tim

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 Might I "Mail Merge" Data For Multiple .txt File Output? [email protected] Excel Discussion (Misc queries) 3 January 8th 07 05:44 AM
Change the "Insert Function" display for mail merge Beach Lover Excel Worksheet Functions 3 November 1st 06 06:41 PM
Mail Merge drops 1st digit ("0") converting from Excel to Word Chuck Martini Excel Discussion (Misc queries) 3 August 7th 06 10:34 PM
Insert "-" in text "1234567890" to have a output like this"123-456-7890" Alwyn Excel Discussion (Misc queries) 3 October 25th 05 11:36 PM
Finding multiple values in excel, then sending as "mail merge" Tom Excel Programming 2 June 10th 04 08:53 PM


All times are GMT +1. The time now is 09:52 PM.

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"