- ©«¤l
- 2035
- ¥DÃD
- 24
- ºëµØ
- 0
- ¿n¤À
- 2031
- ÂI¦W
- 0
- §@·~¨t²Î
- Win7
- ³nÅ骩¥»
- Office2010
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-3-22
- ³Ì«áµn¿ý
- 2024-2-1
|
¦^´_ 1# Michelle-W - Sub Ex()
- Dim rng As Range, dic As Object
- Dim r As Long
-
- r = [A2].End(xlDown).Row
- Range("$A$2:$G$" & r).RemoveDuplicates Columns:=Array(2, 4), Header:=xlYes
-
- Set dic = CreateObject("scripting.dictionary")
- For Each rng In Range("A2", [A2].End(xlDown))
- If Not dic.exists(CStr(rng.Offset(, 1).Value)) Then dic(CStr(rng.Offset(, 1).Value)) = ""
- If rng.Offset(, 3) <> "" Then dic(CStr(rng.Offset(, 1).Value)) = rng.Offset(, 3)
- Next
-
- For r = Range("A2").End(xlDown).Row To 2 Step -1
- If Cells(r, 4) <> dic(CStr(Cells(r, 2).Value)) Then Rows(r).EntireRow.Delete
- Next
- End Sub
½Æ»s¥N½X
§PÂ_¨Ã§R°£.rar (16.53 KB)
|
|