VBA Case on workbook close that includes massagebox that appears twice, why does it do this? (First time use hop this is right approach )
Private Sub Workbook_BeforeClose(Cancel As Boolean)
'Step 1: Activate the message box and start the check
Select Case MsgBox("Reset Parameters?", vbYesNo)
'Step 2: No button pressed, close
Case Is = vbNo
ActiveWorkbook.Save
ActiveWorkbook.Close
'Step 3: Yes button pressed, save the workbook and close
Case Is = vbYes
Application.Run "Update"
ActiveWorkbook.Save
'Step 4: Close your Select Case statement
End Select
End Sub