Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have Excel 2002, SP-2.
If the text cell selected is big in length, the code below does not work. Sub Trim10() Dim cell As Range Selection.Replace What:=Chr(10), replacement:=Chr(32), _ lookat:=xlPart, SearchOrder:=xlByRows, MatchCase:=False End Sub The longest length which worked was 945 but some which are less than that also did not work for some reason. Under 900 and it looks as thought it always works. I can confirm that the ones which haven't worked do contain Chr(10). Is there anything I can do to fix this size limitation? Thanks -- http://www.takesyourfancy.co.uk/ - Great products and great prices for all the family |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel file size limitation | Excel Discussion (Misc queries) | |||
Autofilter - 1000 Selection Limitation? | Excel Discussion (Misc queries) | |||
Userform size limitation | Excel Programming | |||
Array size limitation? | Excel Programming | |||
SheetSelectionChange Target size Limitation? | Excel Programming |