- ©«¤l
- 4901
- ¥DÃD
- 44
- ºëµØ
- 24
- ¿n¤À
- 4916
- ÂI¦W
- 249
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Office 20xx
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-4-30
- ³Ì«áµn¿ý
- 2024-11-17
|
¦^´_ 1# wsken - Sub ex()
- Dim Rng As Range, Rng1 As Range
- w = [W2] + 1: x = [X2] + 1
- For Each a In Range([A3], [A3].End(xlDown))
- If a.Offset(, w) <> "" And a.Offset(, x) <> "" Then
- If Rng Is Nothing Then
- Set Rng = a.Resize(, 20)
- Set Rng1 = a.Offset(1).Resize(, 20)
- Else
- Set Rng = Union(Rng, a.Resize(, 20))
- Set Rng1 = Union(Rng1, a.Offset(1).Resize(, 20))
- End If
- End If
- Next
- If Not Rng Is Nothing Then
- Rng.Copy [W3]
- Rng1.Copy [W3].Offset(Rng.Rows.Count + 3)
- End If
- End Sub
½Æ»s¥N½X |
|