解决方法
您可以使用Unload事件:
GlobalVar ButtonClicked Private Sub Form_Open(Cancel As Integer) ButtonClicked = False End Sub Private ClickMe_Click(Cancel As Integer) ButtonClicked = True End Sub Private Sub Form_Unload(Cancel As Integer) If Not ButtonClicked Then Cancel = True End if End Sub