suresh ullanki
Board Regular
- Joined
- Apr 29, 2013
- Messages
- 67
Hi,
Can someone help with VBA code to sum three columns. have written code for one column which is working fine. sum formula should work individually for each column.
Sub add()
Range("a1").End(xlDown).Offset(1, 0).Select
ActiveCell = WorksheetFunction.Sum(ActiveCell.EntireColumn) + 1
End Sub
<colgroup><col span="3"></colgroup><tbody>
</tbody>
Can someone help with VBA code to sum three columns. have written code for one column which is working fine. sum formula should work individually for each column.
Sub add()
Range("a1").End(xlDown).Offset(1, 0).Select
ActiveCell = WorksheetFunction.Sum(ActiveCell.EntireColumn) + 1
End Sub
A | B | C |
5 | 10 | 15 |
10 | 20 | 30 |
15 | 30 | 45 |
20 | 40 | 60 |
Need Sum Here | Need Sum Here | Need Sum Here |
<colgroup><col span="3"></colgroup><tbody>
</tbody>