Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a long string that includes paragraph marks from Word, which I guess
are carriage returns. Does someone have a function I can use to strip these out of my string? TIA |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Replace(sStr,chr(10),"")
replace chr(10) with whatever character(s) you are trying to remove. However, in my test, chr(10) is the correct character for your situation. -- Regards, Tom Ogilvy "quartz" wrote in message ... I have a long string that includes paragraph marks from Word, which I guess are carriage returns. Does someone have a function I can use to strip these out of my string? TIA |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Another way:
clnStr = Application.WorksheetFunction.Clean(dirtyStr) Sharad "Tom Ogilvy" wrote in message ... Replace(sStr,chr(10),"") replace chr(10) with whatever character(s) you are trying to remove. However, in my test, chr(10) is the correct character for your situation. -- Regards, Tom Ogilvy "quartz" wrote in message ... I have a long string that includes paragraph marks from Word, which I guess are carriage returns. Does someone have a function I can use to strip these out of my string? TIA |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Clean Function | Excel Discussion (Misc queries) | |||
Clean Up Data | Excel Discussion (Misc queries) | |||
End of run 'clean up" . . . | Excel Discussion (Misc queries) | |||
Clean lines | Charts and Charting in Excel | |||
=clean(a1) | Excel Programming |