Private Sub Worksheet_Change(ByVal Target As Range)
Application.EnableEvents = False
If IsNumeric(Cells(1, 2)) Then 'eingabe ist B1
If Target.Row = 1 And Target.Column = 2 Then
Cells(1, 1) = Cells(1, 1) + Cells(1, 2) 'ausgabe ist A1
End If
End If
Application.EnableEvents = True
End SubPrivate Sub Worksheet_SelectionChange(ByVal Target As Range)
Application.EnableEvents = False
If Cells(1, 2) <> "" Then 'eingabe B1
If Target.Row = 1 And Target.Column = 3 Then 'ist C1 fuer +
Cells(1, 1) = Cells(1, 1) + Cells(1, 2) 'ergebnis A1
Cells(2, 2).Activate
End If
If Target.Row = 1 And Target.Column = 4 Then 'ist D1 fuer -
Cells(1, 1) = Cells(1, 1) - Cells(1, 2) 'ergebnis A1
Cells(2, 2).Activate
End If
If Target.Row = 2 And Target.Column = 3 Then 'ist C2 fuer *
Cells(1, 1) = Cells(1, 1) * Cells(1, 2) 'ergebnis A1
Cells(2, 2).Activate
End If
If Target.Row = 2 And Target.Column = 4 Then 'ist D2 fuer /
Cells(1, 1) = Cells(1, 1) / Cells(1, 2) 'ergebnis A1
Cells(2, 2).Activate
End If
End If
Application.EnableEvents = True
End Sub
Blattschutz versteckt Formeln nicht
BenjaminM 31.07.2008 - 10 Hits - 2 Antworten
Formeln schützen ohne Blattschutz?
korfuweb 02.08.2008 - 44 Hits - 2 Antworten
formeln löschen /nur werte
wundi23 04.08.2008 - 23 Hits - 2 Antworten
Namen in Formeln Verwenden
Wolf1234 05.06.2009 - 119 Hits - 1 Antwort
Revolvierende Formeln
Beni1982 12.11.2009 - 146 Hits - 4 Antworten