Live-Forum - Die aktuellen Beiträge
Datum
Titel
28.03.2024 21:12:36
28.03.2024 18:31:49
Anzeige
Archiv - Navigation
180to184
Aktuelles Verzeichnis
Verzeichnis Index
Übersicht Verzeichnisse
Vorheriger Thread
Rückwärts Blättern
Nächster Thread
Vorwärts blättern
Anzeige
HERBERS
Excel-Forum (Archiv)
20+ Jahre Excel-Kompetenz: Von Anwendern, für Anwender
180to184
180to184
Aktuelles Verzeichnis
Verzeichnis Index
Verzeichnis Index
Übersicht Verzeichnisse
Inhaltsverzeichnis

MsgBox Fehlfunktion nach PrintForm

MsgBox Fehlfunktion nach PrintForm
21.11.2002 12:34:09
Schneefeld
Hallo liebes Forum,

ist diese Fehlfunktion bekannt? Nach ausgeführtem PrintForm-Befehl erfolgt keine richtige Rückantwort der MsgBox-Funktion.
.
.
PrintForm
Dim Antwort as Integer
Antwort = MsgBox("Test",vbYesNo)
If Antwort = vbYes then "Ja"
If Antwort = vbNo then "Nein"
' MsgBox übergibt den Wert 1 statt 6 oder 7

Hat jemand eine Lösung?
Danke im voraus!

1
Beitrag zum Forumthread
Beitrag zu diesem Forumthread

Betreff
Datum
Anwender
  • 21.11.2002 13:07:10
    Otto Ecker
Anzeige
Fehler
21.11.2002 13:07:10
Otto Ecker
Hallo Ludwig,

das ist an und für sich alles richtig.

Sub a()
UserForm1.PrintForm
Dim antwort As Integer
antwort = MsgBox("hhhh", vbYesNo, "Frage")
If antwort = vbYes Then MsgBox "ja " & antwort
If antwort = vbNo Then MsgBox "nein " & antwort
End Sub

Prüfe mal die Prozedur "Ja", "Nein" bei Dir.

Gruß Otto

Beliebteste Forumthreads (12 Monate)

Anzeige

Beliebteste Forumthreads (12 Monate)

Anzeige
Anzeige
Anzeige