- ©«¤l
- 4901
- ¥DÃD
- 44
- ºëµØ
- 24
- ¿n¤À
- 4916
- ÂI¦W
- 257
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Office 20xx
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-4-30
- ³Ì«áµn¿ý
- 2024-11-27
|
¦^´_ 1# mycmyc
§Anªºµ²ªG¬O³o¼Ë§a
°õ¦æ¥H¤U¥N½X- Sub ex()
- Dim Rng As Range, MyRng As Range, A As Range
- With ¤u§@ªí1
- Set MyRng = .[C1]
- .Range("C:C").Replace 2120, "=1/0", xlWhole
- Set Rng = .Range("C:C").SpecialCells(xlCellTypeFormulas, 16)
- Rng.Value = 2120
- For Each ar In Rng.Areas
- For Each A In ar
- If A.Offset(, 2) = "¤ª÷" And A.Offset(, 4) > 500 Then
- ad = .Range(.[A1], A.Offset(, -2)).Address
- k = Evaluate("Lookup(2,1/(" & ad & "),row(" & ad & "))")
- Set MyRng = Union(MyRng, .Range(.Cells(k, 3), A.End(xlDown)))
- Exit For
- End If
- Next
- Next
- If Not MyRng Is Nothing Then MyRng.EntireRow.Copy ¤u§@ªí2.[A1]
- End With
- End Sub
½Æ»s¥N½X |
|