C
Chand
I am a running a word macro for replacing Unicode numerals like Arial Unicode
numerals to regular font numerals (of any other font). Macro is not removing
complex script font information from the replacement text. Here is the code
.Find.ClearFormatting()
.Find.Replacement.ClearFormatting()
.Find.Format = True
.Find.MatchCase = True
.Find.Font.Name = cFrom.Text
.Find.Replacement.Font.Name = cTo.Text
.Find.Replacement.Font.NameBi = cTo.Text
.Find.Text = a
.Find.Replacement.Text = b
.Find.Execute(Replace:=Word.WdReplace.wdReplaceAll)
.HomeKey(Word.WdUnits.wdStory)
Where a is the character to replace and b is replacement text. Unicode Font
numerals 1 2 3 are replaced but Complex Script font information is not
removed, due to which replacement font name is not applied. Can anyone help
Chand
numerals to regular font numerals (of any other font). Macro is not removing
complex script font information from the replacement text. Here is the code
.Find.ClearFormatting()
.Find.Replacement.ClearFormatting()
.Find.Format = True
.Find.MatchCase = True
.Find.Font.Name = cFrom.Text
.Find.Replacement.Font.Name = cTo.Text
.Find.Replacement.Font.NameBi = cTo.Text
.Find.Text = a
.Find.Replacement.Text = b
.Find.Execute(Replace:=Word.WdReplace.wdReplaceAll)
.HomeKey(Word.WdUnits.wdStory)
Where a is the character to replace and b is replacement text. Unicode Font
numerals 1 2 3 are replaced but Complex Script font information is not
removed, due to which replacement font name is not applied. Can anyone help
Chand