Strange thing is i tried adding .formulaArray and it came up with errors.
the code which is contridicting it self is explained like this
I already have this code on my worksheet
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Range("F2:f3000,g2:g3000,h2:I3000,l2:l3000,m2:m3000,n2:n3000,o2:o3000")) Is Nothing Then Exit Sub
If Target.Cells.Count > 1 Then Exit Sub
Application.EnableEvents = False
If Application.WorksheetFunction.IsText(Target.Value) Then
Target.Value = UCase(Target.Value)
End If
Application.EnableEvents = True
End Sub
and what im trying to do if this code works
Private Sub Worksheet_Change(ByVal Target As Range)
Dim cell As Range
Application.EnableEvents = False
For Each cell In Target
If Not Intersect(cell, Range("A2:A10000")) Is Nothing Then _
Cells(cell.Row, "D").FormulaArray = "=SUM(A1:A10)"
Next cell
Application.EnableEvents = True
End Sub
is to try and to put the two together
G
Bookmarks