如何批量提取EXCEL的手机号码
1、进入excel界面,将电话放在第一列,A1写上题目或空白。

3、输入公式“Sub 提取手机号码() arr = Range("a2:a" & Range("a65536").E荏鱿胫协nd(3).Row) Set reg = CreateObject("vbscript.regexp") reg.Pattern = "1[34578]\d{9}(?=\D|1[34578]\d{9}|$)" reg.Global = True For i = 1 To UBound(arr, 1) s = arr(i, 1) If reg.test(s) Then Set mymatch = reg.Execute(s) m = 2 For Each mat In mymatch Cells(i + 1, m) = mat m = m + 1 Next End If Next i End Sub”。

5、总结如下。

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
阅读量:41
阅读量:28
阅读量:94
阅读量:80
阅读量:63