This code I think will remove the squares:
Cells.Replace What:=Chr(13), Replacement:="", LookAt:=xlPart, SearchOrder:= _
xlByRows, MatchCase:=False, SearchFormat:=False, ReplaceFormat:=False
And this code will remove actual new lines:
Cells.Replace What:=Chr(10), Replacement:="", LookAt:=xlPart, SearchOrder:= _
xlByRows, MatchCase:=False, SearchFormat:=False, ReplaceFormat:=False
Main Topics
Browse All Topics





by: jpaulinoPosted on 2008-01-03 at 07:28:30ID: 20573477
You can try something like this:
).Replace What:=vbCrLf, Replacement:=" ", SearchOrder:=xlByColumns, MatchCase:=True
ActiveSheet.Columns("A:IV"