Hilfe bei Makro: InputBox, Abfrage 'Abbrechen'
Verfasst: Di, 06.07.2004 21:42
Hi Leute,
kann mir jemand helfen, folgendes Makro zum Laufen zu bringen?
Ich möchte bei einer InputBox die Schaltfläche 'Abbrechen' abfragen, aber ich finde die dazu nötige Methode einfach nicht heraus...
InputVal = InputBox("Bitte geben Sie das Passwort ein:", "Passwortabfrage")
If InputVal = passthrough Then
Cell.String = "aktiv"
Sheet2.IsVisible = True
Exit Sub
End If
If InputVal = password Then
Cell.String = "aktiv"
Sheet2.IsVisible = True
Else
Beep
MsgBox ("Falsches Passwort !", 48, "Passwortabfrage")
Exit Sub
End If
Vielen Dank im Voraus
Scandal
PS: Was muss ich tun, um einen Makrocode richtig anzeigen zu lassen?
kann mir jemand helfen, folgendes Makro zum Laufen zu bringen?
Ich möchte bei einer InputBox die Schaltfläche 'Abbrechen' abfragen, aber ich finde die dazu nötige Methode einfach nicht heraus...
InputVal = InputBox("Bitte geben Sie das Passwort ein:", "Passwortabfrage")
If InputVal = passthrough Then
Cell.String = "aktiv"
Sheet2.IsVisible = True
Exit Sub
End If
If InputVal = password Then
Cell.String = "aktiv"
Sheet2.IsVisible = True
Else
Beep
MsgBox ("Falsches Passwort !", 48, "Passwortabfrage")
Exit Sub
End If
Vielen Dank im Voraus

Scandal
PS: Was muss ich tun, um einen Makrocode richtig anzeigen zu lassen?