Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Having output text from a dos batch file, I read it back into a text
box on a userform thus: Open fileName For Input As #1 Do While Not EOF(1) Input #1, x str = str & x & vbCrLf Loop ...and then send 'str' back as the result of a function. When the file has commas in it, the text box reads them as line breaks. Does anyone know how to stop this? tia, Hughie |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hughie,
Maybe getting the whole file in one go is suitable ? Dim FileNum As Long Dim FileStr As String FileNum = FreeFile Open "C:\Test.txt" For Input As FileNum FileStr = Input$(LOF(FileNum), #FileNum) Close #FileNum Debug.Print FileStr NickHK "hughie" wrote in message ps.com... Having output text from a dos batch file, I read it back into a text box on a userform thus: Open fileName For Input As #1 Do While Not EOF(1) Input #1, x str = str & x & vbCrLf Loop ..and then send 'str' back as the result of a function. When the file has commas in it, the text box reads them as line breaks. Does anyone know how to stop this? tia, Hughie |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
TTC delimiter restriction | Excel Discussion (Misc queries) | |||
CSV - no delimiter at end of line | Excel Discussion (Misc queries) | |||
point as delimiter | Excel Discussion (Misc queries) | |||
Delimiter in CSV files | Excel Discussion (Misc queries) | |||
Comma delimiter | Excel Worksheet Functions |