邮件发送成功!·邮件已通过卡巴斯基杀毒引擎扫描
·邮件已经自动保存到“已发送”文件夹 [取消自动保存]
- 'ID:zldccmx 26的整倍数未通过验证 +1
- '撰写:老朽
- '网址:http://Club.ExcelHome.net
- '日期:2009-9-19 上午 11:18:59
- Function N2Char26R(ByVal L As String ) As Double
- '你的代码 要求EXCEL2003下可运行
- '要求不仅限于 2003的IV(256) 和 2007 的XFD(16384列)
- '具体要求请运行 验证1
- For i = 1 To Len(L)
- N2Char26R = N2Char26R + Cells(1, Mid(L, i, 1)).Column * (26 ^ (Len(L) - i))
- Next
- End Function
- '撰写:老朽
- '网址:http://Club.ExcelHome.net
- '日期:2009-9-19 上午 11:18:59
- Function N2Char26(ByVal L As Double ) As String
- '你的代码 要求EXCEL2003下可运行
- '具体要求请运行 验证2
- Arr = Array("Z", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z")
- Do While L > 26
- J = Int(L / 26): K = L - J * 26: L = J
- N2Char26 = Arr(K) & N2Char26
- Loop
- N2Char26 = Arr(L) & N2Char26
- End Function
复制代码
收到 --ldy
[ 本帖最后由 ldy 于 2009-10-21 16:50 编辑 ] |