ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Removing Chr(10) (https://www.excelbanter.com/excel-programming/356607-removing-chr-10-a.html)

Daniel Bonallack

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

MH

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" wrote in
message ...
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





All times are GMT +1. The time now is 06:57 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com