gibt es eine kürzere Schreibweise für diese If-Abfrage?
Sub test()
Dim x As Integer
x = InputBox("Eingabe")
If x = 10 Or x = 15 Or x = 20 Then
MsgBox "Ihre Eingabe war 10, 15 oder 20!"
End If
End Sub
Also sowas wie
if x = {10,15,20} then ..." ?
Danke Euch, Gruß,
Wolli