How can I read a text file for use with Microsoft Word mail merge?
215 pts.
0
Q:
How can I read a text file for use with Microsoft Word mail merge?
Hi
I have a text file that the first row is the filed name that separated with comma and from second row there are data fields that separated by comma too.
I want to read this file record by record and make a report by it's data in microsoft word!!
I have read just the first row of data by using of

For Each aField In ActiveDocument.MailMerge.DataSource.FieldNames
MsgBox aField.Name
msgbox ActiveDocument.MailMerge.DataSource.datafields.item(afield).value
Next aFieldIs

now I want to read all records of text file it possible?How?
Could you please help me?
My OS is win xp sp2 and I use of Microsoft Office 2003.and I use of Microsoft Visual Basic Editor from Ms Word.
Thank you.
----
Regards
Mahnaz
ASKED: Nov 9 2008  1:16 PM GMT
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
0
85 pts.
0
A:
 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0
  • AddThis Social Bookmark Button
Do you want to use the records in Visual Basic? or
to use in (mail merge) MS-word itself ?
Last Answered: Nov 11 2008  5:28 AM GMT by Try it   85 pts.
0
0
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



0