I want to keep running totals of certain parameters within a daily report type format. For example in cell E9 I have the running hours of a machine and in cell F9 I want to have the running hours 'to date'. Gary's student (member here) posted the following solution:
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Range("E9"), Target) Is Nothing Then Exit Sub
[F9] = [F9] + [E9]
End Sub
This works fine but I have several other parameters on the same sheet I want to do the same thing with, for example in E10 I want to record how much gas that machine has used and in F10 I want how much gas 'to date'. When I copy the above code and paste it with the cell values changed only the first instruction works.