|
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
参与一下。。。
- Sub ykcbf() '//2024.5.26
- With Sheets("入库明细")
- r = .Cells(Rows.Count, 1).End(3).Row
- arr = .[a1].Resize(r, 16)
- End With
- ReDim brr(1 To UBound(arr), 1 To 7)
- b = Array(2, 3, 4, 5, 13, 16)
- For i = 4 To UBound(arr)
- If arr(i, 15) = Empty Then
- If Val(arr(i, 14)) = 0 Then
- m = m + 1
- brr(m, 1) = m
- For x = 0 To UBound(b)
- brr(m, x + 2) = arr(i, b(x))
- Next
- End If
- End If
- Next
- With Sheets("全额统计")
- .[a4].Resize(1000, 7) = ""
- .[a4].Resize(m, 7) = brr
- End With
- MsgBox "OK!"
- End Sub
复制代码
|
评分
-
1
查看全部评分
-
|