只能利用Application.Sum 語法, 將column b & column c 加在一起. 但不知如何修改才能達到乘在一起?
謝謝幫忙
Sub a()
Dim ae As Integer, ce As String, cf As String, he As Variant
For ae = 2 To [A999].End(xlUp).Row
ce = Sheets("sheet1").Cells(ae, 2)
cf = Sheets("sheet1").Cells(ae, 3)
he = Application.Sum(ce, cf)
Cells(ae, 4) = he
Next ae
End Sub作者: chin15 時間: 2011-4-23 11:05
For ae = 2 To [A999].End(xlUp).Row
If Cells(ae, 1) <> "" Then Cells(ae, 4) = Cells(ae, 2) * Cells(ae, 3)
Next作者: hugh0620 時間: 2011-4-25 10:46