答案 0 :(得分:3)
让我知道这是否有效
Sub CorporateAdd()
Application.ScreenUpdating = False
Dim TotalRows As Long
Dim UnclassArray As Variant, CorporateArray As Variant
TotalRows = Range("L1048576").End(xlUp).Row
UnclassArray = Columns("N")
CorporateArray = Columns("L")
For i = 4 To TotalRows
CorporateArray(i, 1) = CorporateArray(i, 1) + UnclassArray(i, 1)
Next i
Columns("L") = CorporateArray
'Uncomment this if you want it to automatically delete "Unclassified"
'Columns("N").Delete Shift:=xlLeft
Application.ScreenUpdating = True
End Sub
但是为了将来参考,我不认为人们喜欢当你要求代码时,先自己尝试一下,如果它没有工作来这里寻求帮助来修复它! :)