In my Word 2003 macro I am inserting a number of text files into a Word document. Simple. See following code, but I would like to not have a text file break at the Word page break (the text files can have variable number of lines). I just can't figure out how to do it. If I concatenate the text file into a paragraph, the text file line formatting is off. If I use the text file as is, each line is treated as a paragraph by Word. Any thoughts? Thanks
For i = 1 To nf
Selection.EndKey Unit:=wdStory
Selection.InsertFile FileName:="c:\test\file$(i)
Selection.TypeParagraph
Selection.TypeParagraph
Next
For i = 1 To nf
Selection.EndKey Unit:=wdStory
Selection.InsertFile FileName:="c:\test\file$(i)
Selection.TypeParagraph
Selection.TypeParagraph
Next