warum fragt mich Excel, ob ich speichern will, wenn ich "nein" drücke?
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Dim YesNo As Integer
Application.DisplayAlerts = False
YesNo = MsgBox("Do you wish to save before closing the workbook?", vbYesNo)
If YesNo = vbYes Then
Call DateiSpeichernUndVerschieben
Else
End If
End Sub
Ich habe doch Application.DisplayAlerts auf False gesetzt?!