|
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
- Rem 调用
- Sub DisplayNumber()
- MsgBox encryption("13952838899")
- End Sub
- Rem 定义加密函数
- Function encryption(telephone As String)
- mtlp = Mid(telephone, 4, 4)
- mtlp = Application.Substitute(mtlp, "0", "-")
- mtlp = Application.Substitute(mtlp, "1", "!")
- mtlp = Application.Substitute(mtlp, "2", "@")
- mtlp = Application.Substitute(mtlp, "3", "#")
- mtlp = Application.Substitute(mtlp, "4", "$")
- mtlp = Application.Substitute(mtlp, "5", "%")
- mtlp = Application.Substitute(mtlp, "6", "^")
- mtlp = Application.Substitute(mtlp, "7", "&")
- mtlp = Application.Substitute(mtlp, "8", "*")
- mtlp = Application.Substitute(mtlp, "9", "+")
- encryption = Left(telephone, 3) & mtlp & Right(telephone, 4)
- End Function
复制代码
|
评分
-
1
查看全部评分
-
|