If
WorksheetFunction.CountIf(Range(
"A1:D1"
), LCase(
"X"
)) > 1
Then
MsgBox
"X kann je Prozess nur einmal eingegeben werden!"
& vbNewLine & vbNewLine &
"Vorhandenes X zuerst loeschen!"
, 48,
"Hinweis"
Application.EnableEvents =
False
Application.Undo
rngTarget.
Select
Application.EnableEvents =
True
End
If
If
WorksheetFunction.CountIf(Range(
"A2:D2"
), LCase(
"X"
)) > 1
Then
MsgBox
"X kann je Prozess nur einmal eingegeben werden!"
& vbNewLine & vbNewLine &
"Vorhandenes X zuerst loeschen!"
, 48,
"Hinweis"
Application.EnableEvents =
False
Application.Undo
rngTarget.
Select
Application.EnableEvents =
True
End
If
.
.
.
If
WorksheetFunction.CountIf(Range(
"A40:D40"
), LCase(
"X"
)) > 1
Then
MsgBox
"X kann je Prozess nur einmal eingegeben werden!"
& vbNewLine & vbNewLine &
"Vorhandenes X zuerst loeschen!"
, 48,
"Hinweis"
Application.EnableEvents =
False
Application.Undo
rngTarget.
Select
Application.EnableEvents =
True
End
If