|
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
'数据添加代码
Sub add()
Dim i&, Sht As Worksheet
Sheets(1).Activate
Set Sht = Sheets(2)
i = [A65536].End(xlUp).Row + 1
With Sht
Cells(i, 1) = .[R2]
Cells(i, 2) = .[M24] & "/" & .[P24] & "/" & .[S24]
Cells(i, 3) = .[E4]
Cells(i, 4) = .[D5]
Cells(i, 5) = .[F6]
Cells(i, 6) = .[M7]
Cells(i, 7) = .[G8]
Cells(i, 8) = .[B10]
Cells(i, 9) = .[B11]
Cells(i, 10) = .[B12]
Cells(i, 11) = .[B13]
Cells(i, 12) = .[B14]
Cells(i, 13) = .[B15]
Cells(i, 14) = .[B16]
Cells(i, 15) = .[B17]
Cells(i, 16) = .[B18]
Cells(i, 17) = .[B19]
End With
End Sub
|
|