Remove space from text in cell
Do you have to have this done in VBA? If not, there is a very simple
built-in function you can use to acheive this. Assuming your text is
in cell A1, this formula will remove all empty spaces.
=SUBSTITUTE(A1," ","")
HTH
Dave Birley wrote:
First, I have a confession to make: I actually searched the available answers
first (using search text: "remove space from text in cell"). Nothing there
fit my simpler problem:
Cell G3 contains "Herkimer, Mortimer". I need to get rid of that space
("Herkimer,Mortimer") becaise I am about to search with the result into a
different WB where the data is stored without spaces.
My bet is that there's a really simple function for this <g!
--
Dave
Temping with Staffmark
in Rock Hill, SC
|