Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,452
Default 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


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,118
Default 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

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
Replacing a value in the string variable Maxi[_2_] Excel Programming 7 August 12th 06 05:26 PM
Replacing characters in cells string Billy B Excel Programming 1 June 27th 06 05:29 AM
Replacing a random string of 5 numbers Katie59 Excel Discussion (Misc queries) 5 March 23rd 06 09:12 PM
Formula for Replacing Text in a String? David Godinger Excel Programming 7 May 16th 05 02:05 PM
Replacing a value within a string using a formula solo_razor[_17_] Excel Programming 2 October 30th 03 09:46 AM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"