How can i remove all Enter lines within a cell

Hi All,

How can i remove all Enter lines within a cell

Alt + Enter is done in many cells in a colum. need to remove all in the colum K
How can i do this

thanks
LVL 11
bsharathAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Rob HensonFinance AnalystCommented:
Using the Find & Replace window, in the Find type Alt + 0010 using the number pad.

The cursor will disappear but no character will appear.

In the replace box, leave blank.

Thanks
Rob H
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
s___kCommented:
Use function Clean(Column)
It will remove all non-printing (including new line) characters from cells
0
TomislavjSystem AdminCommented:
go to "Search&Replace", in "Search" cell hold Alt and type 010 on numeric keyboard and hit "Replace all"
0
The Five Tenets of the Most Secure Backup

Data loss can hit a business in any number of ways. In reality, companies should expect to lose data at some point. The challenge is having a plan to recover from such an event.

bsharathAuthor Commented:
Alt + 0010
Alt and type 010

When i click Alt and do this no numbers are entered
0
TomislavjSystem AdminCommented:
it's expected
0
Rob HensonFinance AnalystCommented:
Hence the second line of my suggestion, "No characters will appear".

Thanks
Rob H
0
wobbledCommented:
Or in VBA

Select the whole sheet and then run the following

Selection.Replace chr(13)," "

It will replace all charactor 13's (Carriage returns) with a space.  For no space just put "" rather than " "
0
bsharathAuthor Commented:
Sorry but the Alt method did not work

wobbled
How can execute this
 I placed this in a module and ran but seems to open the macros run prompt
0
Rob HensonFinance AnalystCommented:
Can you upload a sample file? Maybe it is a different character putting the line feed in.
0
wobbledCommented:
Just put the following in a module

Public Sub ClearSpaces()

Selection.Replace chr(13),""

End Sub

Select the cells you wish to run this on or Ctl + A to select the whole sheet

Then just go to the Macro Editor (Ctrl + F11) and click on the run icon or press F5

0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Applications

From novice to tech pro — start learning today.