Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
"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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Extracting charecter from a string | Excel Worksheet Functions | |||
Charecter set | Excel Discussion (Misc queries) | |||
charecter reapeat | Charts and Charting in Excel | |||
How to Delete a Range in Closed Workbook (to Replace Delete Query) | Excel Discussion (Misc queries) | |||
Macro to delete and replace a text box | Excel Discussion (Misc queries) |