Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
how to get rid of "^M" in the output file
I'm new to Excel vba programming, so I'm not sure if I'm doing the
right thing. In my macro, if I do: '''''''''''''''''''''''''''''''''''''''''''''''''' '''''' Dim fileName As String Dim colIndex As Integer Dim rwIndex As Integer fileName = "test.txt" colIndex = 4 Open fileName For Output As #1 For rwIndex = 2 To 10 Print #1, Cells(rwIndex, colIndex).Value Next rwIndex close #1 '''''''''''''''''''''''''''''''''''''''''''''''''' '''''' What I got in the output file were lines that ended with "^M". How can I remove these characters? Thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
printing i am getting this window "output file name" | Excel Discussion (Misc queries) | |||
How Might I "Mail Merge" Data For Multiple .txt File Output? | Excel Discussion (Misc queries) | |||
How Might I "Mail Merge" Data For Multiple .txt File Output? | Excel Programming | |||
Insert "-" in text "1234567890" to have a output like this"123-456-7890" | Excel Discussion (Misc queries) | |||
"Unable to Open File" - excel output of Datagrid <-help needed | Excel Programming |