E
ewan7279
Hi all,
I have some code that updates a table of information. This table is a
different number of rows in length each time. I need a cumulative total in
column H to add up column G in the table from the bottom up, so the bottom
total equals the value in the cell to the left, the next cell up equals the
previous total plus the cell to the left and so on. So far, I have:
Dim EndRng as Range
Dim formulaconst as String
------
Sheets(1).Range("G4").End(xlDown).Select 'selects the first value to be
totalled
EndRng = ActiveCell 'defines the range of the value
formulaconst = ActiveCell.Address 'to enter into formula(??)
EndRng.Offset(0, 1).Select 'first cell to enter formula
ActiveCell.Formula = "=" & formulaconst 'I can't get further than this!!
Please help.
Ewan.
I have some code that updates a table of information. This table is a
different number of rows in length each time. I need a cumulative total in
column H to add up column G in the table from the bottom up, so the bottom
total equals the value in the cell to the left, the next cell up equals the
previous total plus the cell to the left and so on. So far, I have:
Dim EndRng as Range
Dim formulaconst as String
------
Sheets(1).Range("G4").End(xlDown).Select 'selects the first value to be
totalled
EndRng = ActiveCell 'defines the range of the value
formulaconst = ActiveCell.Address 'to enter into formula(??)
EndRng.Offset(0, 1).Select 'first cell to enter formula
ActiveCell.Formula = "=" & formulaconst 'I can't get further than this!!
Please help.
Ewan.