Buttons "Yes" and "No" with VBA in Microsoft Excel

The two buttons yes and no are linked with the question mark. The user has to answer the question. The answer is evaluated with the help of a branch. In the present program, only two different messages are output. By evaluating the two answers, one could initiate two different processes.

Sub MsgBoxYesNo()
If MsgBox("Soll die Datei gesichert werden?", _
vbYesNo Or vbQuestion, "Sicherung") = vbYes Then
MsgBox "Sie wollen die Datei sichern"
MsgBox "Sie wollen die Datei nicht sichern"
End If
End Sub

Was the explanation to "Buttons "Yes" and "No" with VBA in Microsoft Excel"Helpful? Rate now:

Weitere Erklärungen zu Skriptsprachen