作者: HeyEric 时间: 2005-5-28 07:57
呵呵,这个并不难吧,就简单的字符串处理啊作者: 红池坝 时间: 2005-5-28 21:01
修改如下,将下面的代码复制粘贴到VBA编辑器的模块中即可:Public Function IDCheck(x As String) As StringDim ma, ma1, i As Integer
Dim Num(3) As Byte
Dim FifthChar As Byte
Dim SixthChar As Byte
Dim SeventhChar As Byte
Dim EighthChar As Byte
Dim NinthChar As Byte
Dim TenthChar As ByteIf Len(x) <> 11 Then '输入数据不是11位