|
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
Sub copytest()
With Sheet1
iRow = .Range("D" & Rows.Count).End(3).Row
Set Rng = .Range("A5:Z" & iRow)
arr = Rng.SpecialCells(xlCellTypeVisible).Value
End With
With Sheet5
iRow = .[a1].End(xlDown).Row + 1
ReDim brr(1 To UBound(arr), 1 To 5)
For i = 1 To UBound(arr)
brr(i, 1) = arr(i, 9)
brr(i, 2) = arr(i, 11)
brr(i, 3) = arr(i, 4)
brr(i, 4) = arr(i, 17)
brr(i, 5) = "Y"
Next
.Cells(iRow, 1).Resize(UBound(brr), UBound(brr, 2)) = brr
End With
End Sub
|
评分
-
1
查看全部评分
-
|