quit excel with save changes dialog vb.net code example Example: quit excel with save changes dialog vb.net xlWorkBook.Close(SaveChanges:= False) xlApp.Quit()