|
参与一下。。。- Sub ykcbf() '//2024.1.31
- mc = Split(Me.[a1])(0)
- nf = Val(Split(Me.[a2], ":")(1))
- bm = Me.[d2]
- r = Me.Cells(Rows.Count, 1).End(3).Row
- arr = Me.Range("a1:m" & r)
- ReDim brr(1 To 10000, 1 To 4)
- On Error Resume Next
- For j = 2 To UBound(arr, 2)
- For i = 5 To UBound(arr)
- If arr(i, 1) <> Empty Then
- rq = CDate(DateSerial(nf, j - 1, arr(i, 1)))
- m = m + 1
- brr(m, 1) = mc
- brr(m, 2) = bm
- brr(m, 3) = rq
- brr(m, 4) = arr(i, j)
- End If
- Next
- Next
- Me.[s4:v10000] = ""
- Me.[s4].Resize(m, 4) = brr
- MsgBox "OK!"
- End Sub
复制代码
|
|