I have the following code to amalgamate data from 3 text files into 1. How do I delete the carriage return at the end of the file using VBA?
Public Sub CreateInternetFile(strFileCount, strFileInternetExportRanging, strFileInternetExportProducts)
Dim intChannel As Integer
For intChannel = 1 To 511
Close #intChannel
Next intChannel
Open strFileCount For Append As #1
Open strFileInternetExportRanging For Input As #2
Open strFileInternetExportProducts For Input As #3
While Not EOF(2)
Line Input #2, InputString
Print #1, InputString
Wend
While Not EOF(3)
Line Input #3, InputString
Print #1, InputString
Wend
Close #1
Close #2
Close #3
End Sub
Enter your message below
Sign in or Join us (it's free).