Alarmfunktion
18.05.2006 16:39:40
Klaus
ich hatte vorhin schonmal eine frage bezüglich eine "alarmfunktion" geäussert die auch beantwortet werden konnte.
die formel lautet wie folgt:
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
Dim zei
If Target.Column > 2 Or Cells(Target.Row, 1) = "" Or Cells(Target.Row, 2) = "" Then Exit Sub
For zei = 1 To Range("A65536").End(xlUp).Row
If Cells(Target.Row, 1) > Cells(zei, 2) Then
MsgBox "FEHLER"
Application.EnableEvents = False
Target.ClearContents
Application.EnableEvents = True
Target.Select
Exit For
End If
Next zei
End Sub
Kann mir jemand sagen, was ich machen müsste, dass ich nicht eine einfache FEHLERmeldung bekommen sondern, dass excel genau sagt woran es liegt bzw. mir die Zelle in der Messagebox anzeigt?
nochmals vielen dank vorab.
gruss,
klaus