我需要在状态栏中显示此单词宏所做的替换量。我不知道如何将替换作为整数。
With ActiveDocument.Range.Find
.ClearFormatting
.Replacement.ClearFormatting
.Text = xSelection
.Replacement.Text = myValue
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchWildcards = True
.Execute Replace:=wdReplaceAll
End With