+ Reply to Thread
Results 1 to 5 of 5

delete carriage returns from fields in column

  1. #1
    Registered User
    Join Date
    10-18-2007
    Posts
    2

    delete carriage returns from fields in column

    Hi,

    I was hoping someone could point me in the right direction(s).
    I have a column in my spreadsheet that contains "notes". I need to remove all the carriage returns from each note.

    Any help would be greatly appreciated.

    Thank you much in advance, Case

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Try this code.

    Links shows you were to put code

    http://www.contextures.on.ca/xlvba01.html#Regular

    Then select the column or range and press Alt + F8 and select clean up from the list

    Please Login or Register  to view this content.
    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Using a formula,

    =SUBSTITUTE(A1, CHAR(13), "")

  4. #4
    Registered User
    Join Date
    10-18-2007
    Posts
    2

    Thanks!!

    Thanks VBA Noob,

    This worked liked a charm!!

    Case

    Quote Originally Posted by VBA Noob
    Try this code.

    Links shows you were to put code

    http://www.contextures.on.ca/xlvba01.html#Regular

    Then select the column or range and press Alt + F8 and select clean up from the list

    Please Login or Register  to view this content.
    VBA Noob

  5. #5
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Glad it helped.

    Thx for the feedback

    VBA Noob

+ 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