-----Original Message-----
Hi
you could add an event procedure to your worksheet that will put a
formula into your column after you have entered something in column A.
Try the following code (it has to go in your worksheet module, not in a
stadard module)
I assumed that the formula should go in column G:
---
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Cells.count > 1 Then Exit Sub
If Intersect(Target, Me.Range("A:A")) Is Nothing Then Exit Sub
on error goto errhandler
If Target.Value <> "" Then
application.enableevents = false
target.offset(0,6).formulaR1C1="=R[-1]C7+R[0]C5-R [0]C6"
End If
errhandler:
application.enableevents = True
End Sub
--
Regards
Frank Kabel
Frankfurt, Germany
I was looking for a way that would by-pass the need to
extend the formula in the column. Is it possible to
format a column for a formula? The way that has been used
was to extend the formula, =IF(A21="","",G20+E21-F21),
for the first say 100 rows but eventually someone will
run out of copied formulae (?sp) and the extending
process will have to be repeated.
Ken's solution is good but would add step in training for
the people using the sheet.
Thanks in advance for the help. right
option (should
.