replace line feed with comma

Posted on 2005-04-21
Last Modified: 2011-10-03
I have a file that has a line feed at the end of each field.  When I try to do a 'replace' and hit the enter key, Word goes into a search and does not recognize that as the keystroke.  I see the 'other' choice but do not know what to put in to have it replaced with a comma.  When I reveal the codes in word, the character to be replaced looks like the letter 'L' mirrored with an arrow on top.  (I surmised that this is a line feed??)  All I want to do is replace the line feed with a comma?!??!   I thought that this would be easy.......
Question by:GintarasUS
    LVL 24

    Accepted Solution

    Hi GintarasUS,

    bring up the replace dialog (ctrl+h), enter ^l in the find what field and , in the replace with field then click on replace all

    LVL 17

    Expert Comment

    Not sure what version you are using.  In w2003, there is also a  "Special" button in the dialog box to give you all the special character options.

    Other useful codes in similar situations include ^p for paragraph markers, ^m for page breaks and ^t for tabs.   You can use all of these in the search field or in the replace field, and you can search for sequences such as ^p^p  for multiple blank paragraphs.
    LVL 1

    Expert Comment

    If this is a one-time problem, a quick solution would be to import the file into Excel.  The import dialogue box gives you all kind of options for how to import text.  You'd then be able to export it as a comma seperated file.

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    When creating Microsoft Word-based forms there may be a need to have a form field repeated throughout the whole document. For instance, with a company name, you may want this information repeated automatically throughout the document rather than man…
    Introduction This tutorial provides instructions on how to properly format your Word document using the inbuilt tools provided. The benefits of using these tools means your documents are more accessible and easily portable to other applications an…
    In this video, we show how to convert an image-only PDF file into a PDF Searchable Image file, that is, a file with both the image (typically from scanning) and text, which is created in an automated fashion with Optical Character Recognition (OCR) …
    This video shows where to find templates, what they are used for, and how to create and save a custom template using Microsoft Word.

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    26 Experts available now in Live!

    Get 1:1 Help Now