Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default Delete/Replace Newling Charecter from all cells.

How do search entire worksheet for newline charecter and
1) replace it with another charecter (say ~) or/and
2) delete permanently

Thanks in advance.
KM
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 811
Default Delete/Replace Newling Charecter from all cells.

"KM" wrote in message
...
How do search entire worksheet for newline charecter and
1) replace it with another charecter (say ~) or/and
2) delete permanently


Both can be accomplished the same way, with the following line of code:

ActiveSheet.UsedRange.Replace What:=vbLf, Replacement:="~"

Tp replace the newline character (vbLf) with another character, just put
whatever character you want to replace it with in the Replacement:=
argument. To completely remove all vbLf characters, simply use an empty
string in the Replacement:= argument.

--
Rob Bovey, MCSE, MCSD, Excel MVP
Application Professionals
http://www.appspro.com/

* Please post all replies to this newsgroup *
* I delete all unsolicited e-mail responses *



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Delete/Replace Newling Charecter from all cells.

Try the find / replace option under edit. There are more options also.
"KM" wrote in message
...
How do search entire worksheet for newline charecter and
1) replace it with another charecter (say ~) or/and
2) delete permanently

Thanks in advance.
KM



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
Extracting charecter from a string Trevor Aiston[_2_] Excel Worksheet Functions 3 November 26th 09 12:23 PM
Charecter set Suunto Excel Discussion (Misc queries) 3 January 16th 08 02:30 PM
charecter reapeat imh Charts and Charting in Excel 1 August 9th 06 06:35 PM
How to Delete a Range in Closed Workbook (to Replace Delete Query) [email protected] Excel Discussion (Misc queries) 1 March 8th 06 10:10 AM
Macro to delete and replace a text box Dave Excel Discussion (Misc queries) 0 February 24th 05 05:17 PM


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

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"