I have no idea how to do it with automation. I've not done much Word automation.
>You were right craig.
>i went to document in word and the option to 'remove space after each paragraph' does solve the issue of the extra lines
> - question now is how would i do that in the automation coding
>i have added the following if that's any help. can't seem to find anything obvious in the literature.
>
>loSelection.Start=1
>loSelection.End=len(filetostr(mytext.txt))
>
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer