Removing Chr(10)

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top