|
本帖最后由 sparkwx 于 2018-9-28 21:29 编辑
Sub WWWall()
Dim icol%, irow%, r%, c%, brr()
With Sheets("数据汇总窗口")
irow = .[a65536].End(xlUp).Row
icol = .[iv1].End(xlToLeft).Column
ReDim brr(1 To irow, 1 To 4)
For r = 3 To irow
For c = 3 To icol
If .Cells(r, c).Value = "" Then
n = n + 1
brr(n, 1) = .Cells(r, 1): brr(n, 2) = .Cells(r, 2): brr(n, 3) = .Cells(1, c): brr(n, 4) = .Cells(2, c):
End If
Next
Next
End With
Sheets("缺交查询窗口").Range("A2:g1000").ClearContents
Range("A1") = "序号"
Range("b1") = "姓名"
Range("c1") = "日期"
Range("d1") = "内容"
Sheets("缺交查询窗口").[A2].Resize(UBound(brr), 4) = brr
Range("A2:B1000", "D2:D1000").Select
Selection.NumberFormatLocal = "G/通用格式"
Range("c2:c1000").Select
Selection.NumberFormatLocal = "yyyy-mm-dd"
Range("j1").Select
End Sub
|
|