Emptying cells containing a single blank

  • Thread starter Thread starter Ken Loomis
  • Start date Start date
K

Ken Loomis

I have a column where all the cells either have something like "# 45" or a
single blank or are empty.

I need to make all cells with a single blank be empty.

Is there a way to do that without using a loop and testing each cell?

Thanks,
Ken Loomis
 
Columns(2).Replace What:=" ", _
Replacement:="", _
LookAt:=xlWhole, _
SearchOrder:=xlByRows, _
MatchCase:=False
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top