View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.newusers
L. Howard Kittle L. Howard Kittle is offline
external usenet poster
 
Posts: 698
Default Keep adding to one cell to carry a total in another

Try this in the sheet module.

Option Explicit

Private Sub Worksheet_Change(ByVal Target As Range)
On Error Resume Next
If Target < Range("A1") Then
Range("A1").Select
Exit Sub
End If

Application.EnableEvents = False
Range("A2").Value = Range("A1").Value + Range("A2").Value
Target.Select
Application.EnableEvents = True

End Sub

HTH
Regards,
Howard

"Mex" wrote in message
...
Hi
I want to be able to use one cell to keep adding new numbers to that will
accumulate the total in another cell.
Ex: I use A1 as the cell to input a new number that will carry a total in
A2

any help would be appreciated