Workbook_BeforeClose


Private Sub Workbook_BeforeClose(Cancel As Boolean)
    If Me.Saved = False Then Me.Save
End Sub

Popular posts from this blog

50 Excel VBA Oral Interview Questions