|
参与一下。。。- Sub ykcbf() '//2024.1.31
- Dim arr, brr
- Application.ScreenUpdating = False
- ReDim brr(1 To 1000, 1 To 5)
- b = [{2,4,22,23,28}]
- With Sheets("工资汇总")
- r = .Cells(.Rows.Count, "b").End(xlUp).Row
- arr = .[a1].Resize(r, 28)
- End With
- For i = 3 To UBound(arr)
- If arr(i, 28) Then
- m = m + 1
- For x = 1 To UBound(b)
- brr(m, x) = arr(i, b(x))
- Next
- End If
- Next
- With Sheets("津贴表")
- .[aa2:ae1000] = ""
- .Columns("AC:AD").NumberFormatLocal = "@"
- .[aa2].Resize(m, 5) = brr
- End With
- Application.ScreenUpdating = True
- MsgBox "OK!"
- End Sub
复制代码
|
评分
-
1
查看全部评分
-
|