回復 4#Hsieh
純參考 可以簡化一下程式碼
Sub Ex()
Dim Ck(), Kr(), i%
Ck = Array("V", "AD", "AO", "AA")
Kr = Array("C", "E", "H", "K")
With Sheet1
For i = 0 To UBound(Ck)
With .Range(Ck(i) & 5, .Range(Ck(i) & 65536).End(xlUp)).SpecialCells(xlCellTypeVisible)
.copy Sheet3.Range(Kr(i) & 65536).End(xlUp).Offset(1, 0)
End With
Next
End With
End Sub作者: viggostar 時間: 2010-5-28 23:46