- ©«¤l
- 4901
- ¥DÃD
- 44
- ºëµØ
- 24
- ¿n¤À
- 4916
- ÂI¦W
- 44
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Office 20xx
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-4-30
- ³Ì«áµn¿ý
- 2025-2-20
               
|
¦^´_ 12# asus103 - Sub Ex()
- Dim A As Range, Ar(), C, d As Object, d1 As Object, d2 As Object, r&, MyClass$, Ky, s%, i%
- Set d = CreateObject("Scripting.Dictionary")
- Set d1 = CreateObject("Scripting.Dictionary")
- Set d2 = CreateObject("Scripting.Dictionary")
- With Sheets("Sheet1")
- For Each A In .Range(.[B1], .Cells(.Cells.Rows.Count, 2).End(xlUp))
- If A Like "*¯Z" Then MyClass = A.Value
- If Replace(A.Value, "¡@", "") = "¾Ç¸¹" Then Ar = .Range(A, A.End(xlToRight)).Value
- If Val(A.Value) <> 0 And InStr(A, "-") = 0 Then
- s = 0
- For Each C In Ar
- If C <> "" Then d1(C) = ""
- If C = "©m¦W" Then d1("¯Z¯Å") = "": d(A & "¯Z¯Å") = Replace(Replace(Replace(Replace(Replace(Replace(MyClass, "°ª", ""), "¦~", ""), "¯Z", ""), "¤T", 3), "¤G", 2), "¤@", 1)
- d2(A.Value) = ""
- d(A & C) = IIf(s > 5, "", "'") & A.Offset(, s).Text
- s = s + 1
- Next
- End If
- Next
- End With
- With Sheets("Sheet4")
- .Cells = ""
- r = 2
- .[A1].Resize(, d1.Count) = d1.KEYS
- For Each Ky In d2.KEYS
- For i = 1 To d1.Count
- .Cells(r, i) = IIf(d(Ky & .Cells(1, i)) = "", -1, d(Ky & .Cells(1, i)))
- Next
- r = r + 1
- Next
- End With
- End Sub
½Æ»s¥N½X |
|