Gibt es eine Formel, dass wenn ich mit Courser eine
Zelle anklicke bereits eine Funktion ausgelöst wird,
wie diese, die natürlich nicht funktioniert?
B1: WENN(AKTIV(A1);"Text1";WENN(AKTIV(A2);"Text2";""))
Für Hilfe vielen Dank,
Gruß Thorsten
Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)
With Target(1)
If .Address(0, 0) = "B1" Then
.Value = "na endlich hast Du mich aktiviert :-)"
Else
Cells(1, 2) = "Du befindest Dich in Zelle " & .Address(0, 0)
End If
End With
End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Address = "$A$1" Then
[B2] = "Text1"
ElseIf Target.Address = "$A$2" Then
[B2] = "Text2"
End If
End Sub