Hi everyone,
I got a macro that performs a find and replace function on a text.It's working fine but for some unicode character it replaces with weird character despite of original text character.
Code snippet given below::
[CODE=VB]
Selection.find. ClearFormatting
Selection.find. Replacement.Cle arFormatting
With Selection.find
.Text = findeditcontrol .Text
.Replacement.Te xt = replaceeditcont rol.Text
With Selection
If .find.Forward = True Then
.Collapse Direction:=wdCo llapseStart
Else
.Collapse Direction:=wdCo llapseEnd
End If
.find.Execute replace:=wdRepl aceOne
End With
[/CODE]
I got a macro that performs a find and replace function on a text.It's working fine but for some unicode character it replaces with weird character despite of original text character.
Code snippet given below::
[CODE=VB]
Selection.find. ClearFormatting
Selection.find. Replacement.Cle arFormatting
With Selection.find
.Text = findeditcontrol .Text
.Replacement.Te xt = replaceeditcont rol.Text
With Selection
If .find.Forward = True Then
.Collapse Direction:=wdCo llapseStart
Else
.Collapse Direction:=wdCo llapseEnd
End If
.find.Execute replace:=wdRepl aceOne
End With
[/CODE]
Comment