Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Removing unwanted symbols eg 


What character? if it has disappeared in your post please put it either
in a quote or VBA tag.


--
Simon Lloyd

Regards,
Simon Lloyd
'Microsoft Office Help' (http://www.thecodecage.com)
------------------------------------------------------------------------
Simon Lloyd's Profile: 1
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=176694

Microsoft Office Help

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Removing unwanted symbols eg 


Simon Lloyd;634559 Wrote:
What character? if it has disappeared in your post please put it either
in a quote or VBA tag.


Hi Simon, the character it the "" square.


--
StackemEvs
------------------------------------------------------------------------
StackemEvs's Profile: 1402
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=176694

Microsoft Office Help

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Removing unwanted symbols eg 


StackemEvs;636340 Wrote:
Hi Simon, the character it the "" square.Thats an imported carriage return, try the code below:


Sub test()
Dim r As Range
On Error Resume Next
With CreateObject("VBScript.RegExp")
For Each r In
ActiveSheet.UsedRange.SpecialCells(xlCellTypeConst ants, 2)
Pattern = "[\n\r]+"
Global = True
r.Value = .Replace(r.Value, " ")
Pattern = "\s{2,}"
Global = True
r.Value = .Replace(r.Value, " ")
Next
End With
End Sub


--
Simon Lloyd

Regards,
Simon Lloyd
'Microsoft Office Help' (http://www.thecodecage.com)
------------------------------------------------------------------------
Simon Lloyd's Profile: 1
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=176694

Microsoft Office Help

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Removing unwanted symbols eg 


Simon Lloyd;636628 Wrote:
Thats an imported carriage return, try the code below:

Sub test()
Dim r As Range
On Error Resume Next
With CreateObject("VBScript.RegExp")
For Each r In
ActiveSheet.UsedRange.SpecialCells(xlCellTypeConst ants, 2)
.Pattern = "[\n\r]+"
.Global = True
r.Value = .Replace(r.Value, " ")
.Pattern = "\s{2,}"
.Global = True
r.Value = .Replace(r.Value, " ")
Next
End With

End Sub


Thanks Simon, be mid afternoon before I get a chance to test it, but
I'll let you know then how it goes, Neil


--
StackemEvs
------------------------------------------------------------------------
StackemEvs's Profile: 1402
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=176694

Microsoft Office Help

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
How do you find and replace unwanted symbols in text cells? cw2r44 Excel Discussion (Misc queries) 2 January 6th 10 06:09 PM
Removing unwanted fonts Abi Excel Discussion (Misc queries) 2 November 22nd 09 05:47 PM
Removing unwanted digits bill Excel Discussion (Misc queries) 7 March 29th 07 02:10 PM
Removing unwanted characters Scorpvin Excel Discussion (Misc queries) 8 December 5th 05 09:07 PM
removing unwanted macros... melchizadek132 Excel Discussion (Misc queries) 1 June 17th 05 01:24 AM


All times are GMT +1. The time now is 08:31 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"