Option Explicit
Const STR As String = ":"
Sub 去除括号内指定字符()
Dim a, i, j, k, n
a = [a1].CurrentRegion.Resize(, 1).Value
For i = 1 To UBound(a)
For j = 1 To Len(a(i, 1))
If InStr(Mid(a(i, 1), j, 1), "(") Then
n = 1
For k = j + 1 To Len(a(i, 1))
If InStr(Mid(a(i, 1), k, 1), ")") Then n = n - 1
If InStr(Mid(a(i, 1), k, 1), "(") Then n = n + 1
If n = 0 Then j = k: Exit For
If Mid(a(i, 1), k, 1) = STR Then Mid(a(i, 1), k, 1) = "?"
Next
End If
Next
a(i, 1) = Replace(a(i, 1), "?", vbNullString)
Next
[b1].Resize(UBound(a)) = a
End Sub