Replacing Chr(10) in a string

G

Guest

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

Thanks
 
R

RB Smissaert

CurrentString = Replace(CurrentString, Chr(10), "@domain.com;", 1, -1,
vbBinaryCompare)

RBS
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top