1、去除字符串中的数字
Function aa(sr As Range)
Set reg = CreateObject("vbscript.regexp")
With reg
.Global = True
.Pattern = "\d+"
End With
aa = reg.Replace(sr, "")
End Function
时间: 2024-10-12 20:34:53
1、去除字符串中的数字
Function aa(sr As Range)
Set reg = CreateObject("vbscript.regexp")
With reg
.Global = True
.Pattern = "\d+"
End With
aa = reg.Replace(sr, "")
End Function