#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Hard return

Does any one out there know how to remove a lot of hard returns from multiple
cells
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Hard return

Usually EditReplace works on the selection if the hard return is generate by
Alt + Enter in a cell.

What: CTRL + j

With: nothing

Replace all.

If generated by CHAR(10) in a formula, copypaste specialvalues first.


Gord Dibben MS Excel MVP

On Mon, 18 Jun 2007 17:31:01 -0700, ttribble
wrote:

Does any one out there know how to remove a lot of hard returns from multiple
cells


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,202
Default Hard return

Does any one out there know how to remove a lot of
hard returns from multiple cells


You could run a macro similar to this (change the indicated range as
needed)....

Dim C As Range
For Each C In Range("b1:f3")
C.Value = Replace(C.Value, vbLf, " ")
Next

and then save the worksheet afterwards. The above macro removes each Line
Feed (what you are calling a "hard return") and replaces them with a single
blank space.

Rick

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Hard return

Or replace it with a space character?

(just in case <vbg)

Gord Dibben wrote:

Usually EditReplace works on the selection if the hard return is generate by
Alt + Enter in a cell.

What: CTRL + j

With: nothing

Replace all.

If generated by CHAR(10) in a formula, copypaste specialvalues first.

Gord Dibben MS Excel MVP

On Mon, 18 Jun 2007 17:31:01 -0700, ttribble
wrote:

Does any one out there know how to remove a lot of hard returns from multiple
cells


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Hard return

I just never remember to add that piece of info<g

Thanks, Gord

On Mon, 18 Jun 2007 19:57:14 -0500, Dave Peterson
wrote:

Or replace it with a space character?

(just in case <vbg)

Gord Dibben wrote:

Usually EditReplace works on the selection if the hard return is generate by
Alt + Enter in a cell.

What: CTRL + j

With: nothing

Replace all.

If generated by CHAR(10) in a formula, copypaste specialvalues first.

Gord Dibben MS Excel MVP

On Mon, 18 Jun 2007 17:31:01 -0700, ttribble
wrote:

Does any one out there know how to remove a lot of hard returns from multiple
cells


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
HARD RETURN IN A CELL Dave T Excel Discussion (Misc queries) 4 April 18th 07 03:14 AM
Replace ; with hard return Stephanie Excel Discussion (Misc queries) 11 April 17th 07 10:11 PM
How do I split a one cell which has a hard return? GatorGirl Excel Discussion (Misc queries) 2 June 19th 06 10:06 PM
line break / hard return? jd Excel Discussion (Misc queries) 3 February 13th 06 07:01 AM
hard return alphadog47 New Users to Excel 2 February 26th 05 08:38 PM


All times are GMT +1. The time now is 06:39 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"