我想要Find
四个必须包含小括号的大写/大写字母()
。
例如(ABCD)
以下代码适用于字母,但不突出显示括号。
我认为它没有找到括号。
Sub FindUppercaseLetter()
Selection.Find.ClearFormatting
With Selection.Find
.Text = "([A-Z][A-Z][A-Z][A-Z])"
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.MatchWildcards = True
End With
Selection.Find.Execute
End Sub
情况是这样的: