Private
Sub
cmdSuche_Click()
Dim
sSuchwort
As
String
, oZelle
As
Range
Worksheets(
"16_Tabellenverweis"
).Unprotect Password:=
""
sSuchwort = InputBox(
"Bitte geben Sie den Suchbegriff ein."
,
"Suchfunktion"
)
If
Not
sSuchwort = vbNullString
Then
Set
oZelle = Range(
"A3:J150"
).Find(sSuchwort)
If
Not
oZelle
Is
Nothing
Then
oZelle.Offset(, -1).
Select
Else
MsgBox
"Der Eintrag wurde nicht gefunden"
End
If
End
If
Set
oZelle =
Nothing
Worksheets(
"16_Tabellenverweis"
).Protect Password:=
""
End
Sub