- ©«¤l
- 552
- ¥DÃD
- 3
- ºëµØ
- 0
- ¿n¤À
- 578
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- office 2010
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2015-2-8
- ³Ì«áµn¿ý
- 2024-7-9
  
|
¦^´_ 1# b31978
¸Õ¸Õ¬Ý¡A¤]¤£ª¾¹ï¤£¹ï¡I- Public Sub test()
- Dim arr()
- aa = Cells(Rows.Count, 10).End(xlUp).Row
- xx = WorksheetFunction.CountA(Range("J3:J" & aa))
- i = 1
- ReDim arr(1 To xx, 1 To 4)
- For Each Rng In Range("C3:i" & aa)
- If Rng <> "" Then
- ss = Cells(Rng.Row, 1).MergeArea
- arr(i, 1) = ss(1, 1)
- arr(i, 2) = Cells(2, Rng.Column)
- arr(i, 3) = Rng
- arr(i, 4) = Cells(Rng.Row, 10)
- i = i + 1
- End If
- Next
- Range("M3").Resize(xx, 4) = arr
- End Sub
½Æ»s¥N½X |
|