Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 7
Default Removing Line Breaks Within a Cell

I have pasted content from a web source into a spreadsheet. One of the cells looks like this:

Concepts Evaluated:
Examining the Status Quo
Explaining the Stakes and the Consequences
Destabilizing the Status Quo

I need it to look like this:

Concepts Evaluated: Examining the Status Quo, Explaining the Stakes and the Consequences, Destabilizing the Status Quo

I tried removing line breaks (alt 010, alt 013, ctrl J) - but that doesn't work. Does anyone have any ideas as to how I might get these cells formatted the way I need them to be? Current formatting is breaking downstream functions.

Thanks!!

Tim
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,872
Default Removing Line Breaks Within a Cell

Hi Tim,

Am Tue, 22 Jul 2014 17:27:13 +0100 schrieb TimR1316:

Concepts Evaluated:
Examining the Status Quo
Explaining the Stakes and the Consequences
Destabilizing the Status Quo

I need it to look like this:

Concepts Evaluated: Examining the Status Quo, Explaining the Stakes and
the Consequences, Destabilizing the Status Quo


rightclick the cell = format cells = Alignment and deaktivate
"WrapText"


Regards
Claus B.
--
Vista Ultimate / Windows7
Office 2007 Ultimate / 2010 Professional
  #3   Report Post  
Junior Member
 
Posts: 7
Default

Thanks, Claus. I neglected to mention that I had tried that. It looks fine - but my down stream processes still think there's something there causing the line break.

Maybe there's something else causing the downstream problem, but this seems to happen frequently when dealing with text like this. I can normally fix it manually, but there are so many cells like this, it would take me forever to fix them.

Thanks!!

Tim

Quote:
Originally Posted by Claus Busch View Post
Hi Tim,



rightclick the cell = format cells = Alignment and deaktivate
"WrapText"


Regards
Claus B.
--
Vista Ultimate / Windows7
Office 2007 Ultimate / 2010 Professional
  #4   Report Post  
Junior Member
 
Posts: 7
Default

I think I figured out how to fix the problem. I opened the .csv file in notepad++. When I did that, I could still see CR and LF characters (even after using wrap text). I was able to remove the CR and LF characters in notepad++ then continue my downstream processing. Not sure if there is a way to do this in Excel - but for now, my problem is resolved. Thanks!!

Quote:
Originally Posted by TimR1316 View Post
Thanks, Claus. I neglected to mention that I had tried that. It looks fine - but my down stream processes still think there's something there causing the line break.

Maybe there's something else causing the downstream problem, but this seems to happen frequently when dealing with text like this. I can normally fix it manually, but there are so many cells like this, it would take me forever to fix them.

Thanks!!

Tim
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,872
Default Removing Line Breaks Within a Cell

Hi Tim,

Am Tue, 22 Jul 2014 19:16:37 +0100 schrieb TimR1316:

Maybe there's something else causing the downstream problem, but this
seems to happen frequently when dealing with text like this. I can
normally fix it manually, but there are so many cells like this, it
would take me forever to fix them.


try:

Sub Test()
Application.ScreenUpdating = False
ActiveSheet.UsedRange.WrapText = False
Application.ScreenUpdating = True
End Sub


Regards
Claus B.
--
Vista Ultimate / Windows7
Office 2007 Ultimate / 2010 Professional
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
Removing Manual Line Breaks in Multiple Cells Jules Excel Discussion (Misc queries) 2 January 30th 09 08:09 PM
Shortcut:??? No Line Breaks in Cell [email protected] Excel Discussion (Misc queries) 5 March 5th 08 06:04 PM
Hyperlink in cell with line breaks [email protected] Excel Discussion (Misc queries) 4 July 18th 06 06:02 PM
Can you get line breaks in a text cell RFJ Excel Discussion (Misc queries) 3 November 9th 05 07:20 PM
populating a cell with text w/ line breaks Nick Hodge Excel Programming 2 July 9th 04 12:19 AM


All times are GMT +1. The time now is 06:36 AM.

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"