|
Private Sub Worksheet_Change(ByVal T As Range)
If T.Row > 4 And T.Column = 10 Then
If T.Count > 1 Then End
If T.Value = "" Then End
If InStr(T.Value, "*") = 0 Then End
r = T.Row
rr = Split(T.Value, "*")
If UBound(rr) = 2 Then
For j = 0 To UBound(rr)
Cells(r, j + 3) = rr(j)
Next j
ElseIf UBound(rr) < 2 Then
For j = 0 To UBound(rr)
Cells(r, j + 3) = rr(j)
Next j
Cells(r, 5) = 1
End If
End If
If T.Row > 4 And T.Column = 6 Then
If T.Count > 1 Then End
If T.Value = "" Then End
r = T.Row
If Cells(r, 3) <> "" And Cells(r, 5) <> "" Then
Cells(r, 7) = Cells(r, 3) * Cells(r, 5) * T.Value
[h20] = Application.Sum(Range("g5:g19"))
End If
End If
End Sub
|
|