|
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用 · 内置多项VBA编程加强工具 ★ 免费下载 ★ ★ 使用手册★
- Sub test()
- ar = [A1].End(4).Row
- arr = Range("A2:A" & ar)
- Dim crr(1 To 100, 1 To 1)
- ir = "甲乙丙丁戊己庚辛壬癸"
- For i = 1 To ar - 1
- Set d = CreateObject("Scripting.Dictionary")
- br = Split(arr(i, 1), ";")
- For j = 0 To UBound(br) - 1
- m = InStr(ir, br(j))
- For k = j + 1 To UBound(br)
- n = InStr(ir, br(k))
- If m > n Then
- d(br(j) & "排序错") = ""
- End If
- Next
- Next
- k = d.keys
- s = Join(k, ";")
- crr(i, 1) = s
- Set d = Nothing
- Next
- [B2].Resize(ar - 1, 1) = crr
- End Sub
复制代码 |
评分
-
1
查看全部评分
-
|