- ©«¤l
- 4901
- ¥DÃD
- 44
- ºëµØ
- 24
- ¿n¤À
- 4916
- ÂI¦W
- 242
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Office 20xx
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-4-30
- ³Ì«áµn¿ý
- 2024-11-8
|
¦^´_ 5# a703130 - Sub nn()
- Dim A As Range, Rng As Range, Rng1 As Range, Rng2 As Range
- Set d = CreateObject("Scripting.Dictionary")
- Range("D:D").SpecialCells(xlCellTypeBlanks).EntireRow.Delete
- Cells.EntireRow.Hidden = False
- For Each A In Range([D2], [D65536].End(xlUp))
- If d.exists(A.Value) = False Then
- d(A.Value) = A.Value
- If Rng2 Is Nothing Then Set Rng2 = A Else Set Rng2 = Union(A, Rng2)
- End If
- If A = A.Offset(1, 0) Then
- If Rng Is Nothing Then Set Rng = A Else Set Rng = Union(A, Rng)
- Else
- If Rng1 Is Nothing Then Set Rng1 = A.Offset(1, 0) Else Set Rng1 = Union(A.Offset(1, 0), Rng1)
- End If
- Next
- Rng1.EntireRow.Insert
- Rng.EntireRow.Hidden = True
- Rng2.EntireRow.Hidden = False
- End Sub
½Æ»s¥N½X
|
|