Ken -
I've seen a number of your posts to this and similar issues and have tried
most but remain stumped.
I have exported contacts from Outlook into excel and the address fields
have
hard returns. I needed to remove the hard return in order to convert text
to
columns and split the address fields. Using =SUBSTITUTE(B1,CHAR(10),";"),
I
was able to do so but there is still a square box [] in some of the cells.
When convert text to columns, all data after the square box is lost.
How do you remove the square box?
I have tried alt+0010 with a numeric keypad but that replaces all blank
spaces, not the square box.
Thoughts?
Ken Snell (MVP) said:
Klatuus' suggestion for using Replace function is good. But note that
Word
and Excel don't use the combination of a carriage return and line feed
characters for new lines. Excel uses just the line feed character, and
I'm
not sure which one Word uses. So you will need to try Klatuu's suggestion
with just one of the Chr functions:
Replace(x, Chr(13), "")
or
Replace(x, Chr(10), "")