ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Replacing Chr(10) in a string (https://www.excelbanter.com/excel-programming/376940-replacing-chr-10-string.html)

Barb Reinhardt

Replacing Chr(10) in a string
 
I have a string I'll call "CurrentString" and I want to replace all values of
Chr(10) with ;". How would I do this?

Thanks

RB Smissaert

Replacing Chr(10) in a string
 
CurrentString = Replace(CurrentString, Chr(10), ;", 1, -1,
vbBinaryCompare)

RBS


"Barb Reinhardt" wrote in message
...
I have a string I'll call "CurrentString" and I want to replace all values
of
Chr(10) with ;". How would I do this?

Thanks



Ron Coderre

Replacing Chr(10) in a string
 
Try this:

Select the cells to be impacted

Then....from the Excel Main Menu
<edit<replace
Find what: Hold down the [alt] key....type 0010...release [alt] key
Replace with: @domain.com
Click the [Replace All] button

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"Barb Reinhardt" wrote:

I have a string I'll call "CurrentString" and I want to replace all values of
Chr(10) with ;". How would I do this?

Thanks



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

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