I have a minor annoyance when I create text files using a macro.
I am using normal code to open text files, then using 'Print' to write the data.
What happens is when the cell contains text that uses "Shift-Enter" to get multiple lines of text within a cell. When I print that cell, the lines of text end with vbLF. The 'print' itself ends with vbCRLF.
During my 'print', how can I make every line always end with vbCRLF?
Currently, I'm using NotePad++ to "fix" the file. I open the file, do Ctrl-A, Ctrl-X, Ctrl-V, Ctrl-S, Ctrl-W. Open the next file. Doesn't sound like a big deal, but doing 100 or more files this manual way seems silly.
I'd love to know how to make the 'Print' command just do the vbCRLF even for text it's printing that only had vbLF to begin with.
I hope this isn't a really stoopid question.![]()
Bookmarks