+ Reply to Thread
Results 1 to 2 of 2

Removing Chr(10)

  1. #1
    Daniel Bonallack
    Guest

    Removing Chr(10)

    Hi am trying to get rid of the little box that shows up when you view with
    "Wrap Text" turned off. My download contains thousands of them.
    Previously I've found it easy with:
    Selection.Replace What:=Chr(10), Replacement:="", LookAt:=xlPart, _
    SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
    ReplaceFormat:=False

    But on one sheet, this has no affect, like Excel just ran out of memory.
    Some of the cells contain more than 255 characters - is this the problem?

    Thanks in advance for any help
    Daniel

  2. #2
    MH
    Guest

    Re: Removing Chr(10)

    You probably need to find/replace using Chr(13) as well, some files use a
    carriage return/Linefeed pair instead of one or the other.

    MH

    "Daniel Bonallack" <DanielBonallack@discussions.microsoft.com> wrote in
    message news:D271F9B3-DF77-4B51-84F4-6D96B6F25DD5@microsoft.com...
    > Hi am trying to get rid of the little box that shows up when you view with
    > "Wrap Text" turned off. My download contains thousands of them.
    > Previously I've found it easy with:
    > Selection.Replace What:=Chr(10), Replacement:="", LookAt:=xlPart, _
    > SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
    > ReplaceFormat:=False
    >
    > But on one sheet, this has no affect, like Excel just ran out of memory.
    > Some of the cells contain more than 255 characters - is this the problem?
    >
    > Thanks in advance for any help
    > Daniel




+ 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