Hey all,
I'm using a macro that strips out special characters from word documents. This is the code I've been using for find and replace:
Code:
With Selection.Find
.ClearFormatting
.Text = "Á"
.Replacement.ClearFormatting
.Replacement.Text = "A"
.Execute Replace:=wdReplaceAll, Forward:=True, _
Wrap:=wdFindContinue
End With
With Selection.Find
.ClearFormatting
.Text = "á"
.Replacement.ClearFormatting
.Replacement.Text = "a"
.Execute Replace:=wdReplaceAll, Forward:=True, _
Wrap:=wdFindContinue
End With
This has worked with most characters, but I'm having an issue with accented characters. Both Á and
á are being replaced with A (instead of A and a respectively). Anyone have any suggestions on how to resolve this? Thanks!