Results 1 to 11 of 11

Odd behaviour in CRLF Code using cells with multi-line text

Threaded View

  1. #1
    Forum Contributor Rhudi's Avatar
    Join Date
    03-08-2013
    Location
    South Carolina, US
    MS-Off Ver
    Professional Plus 2016 aka Office 365
    Posts
    201

    Odd behaviour in CRLF Code using cells with multi-line text

    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.
    Last edited by Rhudi; 04-19-2013 at 03:35 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1