Replacing special characters and symbols in word documents.

Is there any VB script for replacing special characters & symbols like chr(172).
Shyam
micazoneAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
_agj_Connect With a Mentor Commented:
do u just want to replace a single character?
 in that case:

OutString = Replace(Instring, chr(172), "")

if u want to take off all non-numeric characters, for eg...

jus have a loop like:

i = 1
while i < len(Instring)
if not IsNUmeric(mid(Instring,i,1)) then mid(Instring,i,1) = chr(0)
wend
OutString = Replace(Instring, chr(0), "")


similiarly
0
 
micazoneAuthor Commented:
I need to replace multiple special chracters but unfortunately VB does not recognize some of the charcter codes like ChrW(8220), ChrW(960,962,963).
Can u help please with a suitable script.
0
 
micazoneAuthor Commented:
Thanks,
How to put your code in VB?
Chr(172) not at all being found or replaced by word. Can u solve this please.
Regards
0
All Courses

From novice to tech pro — start learning today.