|
请帮忙翻译此宏
Sub ribaobiao()
Worksheets("日报表").Range("a10", "l49") = ""
Worksheets("日报表").Cells(5, 1) = Worksheets("数据库").Cells(6, 2)
Worksheets("日报表").Cells(6, 2) = Worksheets("数据库").Cells(5, 2)
z = Worksheets("日报表").Cells(7, 2)
Worksheets("日报表").Cells(52, 2) = Worksheets("数据库").Cells(z + 7, 2)
Worksheets("日报表").Cells(55, 2) = Worksheets("数据库").Cells(z + 7, 3)
For q = 4 To 220 Step 4
If Worksheets("数据库").Cells(5, q) = "" Then
Exit For
End If
Worksheets("日报表").Cells(q / 4 + 9, 1) = q / 4
Worksheets("日报表").Cells(q / 4 + 9, 2) = Worksheets("数据库").Cells(5, q)
Worksheets("日报表").Cells(q / 4 + 9, 3) = Worksheets("数据库").Cells(6, q + 3)
Worksheets("日报表").Cells(q / 4 + 9, 4) = Worksheets("数据库").Cells(6, q + 1)
Worksheets("日报表").Cells(q / 4 + 9, 9) = Worksheets("数据库").Cells(z + 7, q)
Worksheets("日报表").Cells(q / 4 + 9, 10) = Worksheets("数据库").Cells(z + 7, q + 1)
Worksheets("日报表").Cells(q / 4 + 9, 11) = Worksheets("数据库").Cells(z + 7, q + 2)
Worksheets("日报表").Cells(q / 4 + 9, 12) = Worksheets("数据库").Cells(z + 7, q + 3)
x = 5
For e = q To q + 3
For w = 8 To 7 + z
Worksheets("日报表").Cells(q / 4 + 9, x) = Worksheets("数据库").Cells(w, e) + Worksheets("日报表").Cells(q / 4 + 9, x)
Next w
x = x + 1
Next e
Next q
End Sub
|
|