66问答网
所有问题
Excel 求助:用VBA从字符串中提取数字
如题所述
举报该问题
推荐答案 2020-01-10
您的浏览器不支持HTML5视频
温馨提示:答案为网友推荐,仅供参考
当前网址:
http://66.wendadaohang.com/zd/2vpvsxpvpDUnvnUpnD.html
其他回答
第1个回答 2018-09-01
给一个自定义函数:
Function tiqu(rg As String) '提取数字
Set regx = CreateObject("VBScript.RegExp")
With regx
.Global = True
.Pattern = "\D" '数字
tiqu = .Replace(rg, "")
End With
End Function
本回答被网友采纳
相似回答
大家正在搜
相关问题
excel VBA,从字符串中提取数字。
Excel用自定义函数提取单元格内字符串中的数字(VBA代码...
EXCEL用VBA提取字符串
EXCEL中请用VBA提取数字。
excel中vba提取字符串问题
VBA从字符串中提取数字的函数是什么?
EXCEL 用VBA 提取字符串
从excel字符串中提取数字