- Sub ykcbf() '//2025.12.1
- ReDim brr(1 To 100, 1 To 10)
- With Sheets("出货单")
- For i = 8 To 13
- If .Cells(i, 7).Value Then
- m = m + 1
- brr(m, 1) = CDate(.[j5].Value)
- brr(m, 2) = .[j4].Value
- brr(m, 3) = .[e3].Value
- brr(m, 4) = .Cells(i, 3).Value
- brr(m, 5) = .Cells(i, 4).Value
- brr(m, 6) = .Cells(i, 6).Value
- For j = 7 To 10
- brr(m, j) = .Cells(i, j).Value
- Next
- End If
- Next
- End With
- With Sheets("汇总信息")
- .UsedRange.Offset(2).ClearContents
- .Columns(2).NumberFormatLocal = "@"
- .[a3].Resize(m, 10) = brr
- End With
- End Sub
复制代码
|