ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Remove 0D0A from cell with word (https://www.excelbanter.com/excel-programming/366433-remove-0d0a-cell-word.html)

Mariusz[_3_]

Remove 0D0A from cell with word
 
In excel sheet I've got ceels with some words. At the end of every word i
got 2 chars: 0D0A and i want to delete them.
Please tell me how do that.
I tried everything, please help me !!! :(
May be someone have nice macro ?!


Tom Ogilvy

Remove 0D0A from cell with word
 
Sub ReplaceStuff()

Selection.Replace _
What:=vbCrLf, _
Replacement:="", _
LookAt:=xlPart, _
SearchOrder:=xlByRows, _
MatchCase:=False
End Sub

--
Regards,
Tom Ogilvy


"Mariusz" wrote:

In excel sheet I've got ceels with some words. At the end of every word i
got 2 chars: 0D0A and i want to delete them.
Please tell me how do that.
I tried everything, please help me !!! :(
May be someone have nice macro ?!



Stefi

Remove 0D0A from cell with word
 
Try this formula (say your text is in A1):
=SUBSTITUTE(SUBSTITUTE(A1,CHAR(13),""),CHAR(10),"" )
Regards,
Stefi


Mariusz ezt *rta:

In excel sheet I've got ceels with some words. At the end of every word i
got 2 chars: 0D0A and i want to delete them.
Please tell me how do that.
I tried everything, please help me !!! :(
May be someone have nice macro ?!




All times are GMT +1. The time now is 02:45 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com