+ Reply to Thread
Results 1 to 6 of 6

Copying text with paragraph marks into single Excel cell

  1. #1
    Peter Wells
    Guest

    Copying text with paragraph marks into single Excel cell

    When I paste text that contains paragraph marks into Excel it breaks the text
    at each CR into a different cell. How can I force Excel to copy a body of
    text, including CRs, into a single cell.

    TIA

    Peter

  2. #2
    Dave Peterson
    Guest

    Re: Copying text with paragraph marks into single Excel cell

    If you only have one cell to do, you can paste directly into the formula bar.

    If you're copying a table (from MSWord???) to excel...

    Saved from a previous post:

    If your cells in your word table contain paragraph mark or linebreak characters,
    then excel will bring them over as separate cells.

    One way around it is to convert those paragraph marks & linebreaks to unique
    characters, then copy|paste and then convert them back to linefeeds.

    I like this technique (inside a copy of the word file):
    Select your table.
    Edit|replace|Special (show More if required)
    Find what: (paragraph mark under Special button)
    replace with: $$$$$ (if $$$$$ doesn't appear in the table)
    replace all

    Same thing with Manual Line break (from under Special).

    Now copy the table into Excel.

    Edit|Replace
    Replace what: $$$$$
    Replace with: hit and hold the alt and type 0010 from the number pad--not above
    QWERTY.

    It may look like you haven't done anything, but if you did it right, you
    replaced $$$$$ with alt-enter.
    Replace all.

    Don't forget to close the word document without saving (or hit undo as many
    times as necessary).

    Peter Wells wrote:
    >
    > When I paste text that contains paragraph marks into Excel it breaks the text
    > at each CR into a different cell. How can I force Excel to copy a body of
    > text, including CRs, into a single cell.
    >
    > TIA
    >
    > Peter


    --

    Dave Peterson

  3. #3
    Registered User
    Join Date
    07-25-2012
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Copying text with paragraph marks into single Excel cell

    I want to copy and paste RTF data to excel with html tags in the data applied
    eg. <B><P>Data</P></B> converted to font with bold and paragraph style applied

    like [P]Data[/P]


    any code to convert these tags to vba code so that pasted values has those tags applied
    Any help in this would be appreciated.
    Thanks

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Copying text with paragraph marks into single Excel cell

    milindm7,

    Welcome to the Forum, unfortunately:

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread. It makes sense to have a new thread for your question because a thread with numerous replies can be off putting & difficult to pick out relevant replies.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  5. #5
    Registered User
    Join Date
    03-16-2012
    Location
    Porto, Portugal
    MS-Off Ver
    Excel 2007, 2010
    Posts
    27

    Re: Copying text with paragraph marks into single Excel cell

    Hello everyone
    Sorry asking again this same question, but I did not understand how to copy an paste from a pdf file: I want to copy a text from a PDF file and paste it in a single cell without paragraphs, line breaks or others. May you help me in this matter?
    Thank you in advance
    Kind regards
    Jose A Macedo
    Jos? Ant?nio Macedo
    University of Porto, Portugal

  6. #6
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Copying text with paragraph marks into single Excel cell

    Macedo,

    Welcome to the Forum, unfortunately:

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread. It makes sense to have a new thread for your question because a thread with numerous replies can be off putting & difficult to pick out relevant replies.

+ Reply to Thread

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